Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLAY-729] 🛠️ Update Avatar kit imageAlt default #2446

Merged
merged 4 commits into from
Apr 12, 2023

Conversation

Israel-Molestina
Copy link
Contributor

What does this PR do?
Runway Ticket
This PR reconfigured the way the alt attribute is passed into the Image kit from the Avatar kit. Previously it would use the prop imageAlt or image_alt to pass into the alt attribute. Therefore if a user did not pass in an imageAlt prop the alt attribute would be left empty. I've created a conditional that checks for an imageAtl prop, if there is none, it passes the name prop as the alt attribute.

Screenshots: Screenshots to visualize your addition/change

Screen Shot 2023-04-11 at 11 48 00 AM

Screen Shot 2023-04-11 at 11 48 12 AM

How to test? Steps to confirm the desired behavior:

  1. Go to the User Kit and inspect the page
  2. Notice how even though there is no imageAlt prop being passes in the image has an alt attribute.

Checklist:

  • LABELS Add a label: enhancement, bug, improvement, new kit, deprecated, or breaking. See Changelog & Labels for details.
  • DEPLOY I have added the milano label to show I'm ready for a review.
  • TESTS I have added test coverage to my code.

…t is given by the user it defaults to the name provided
@Israel-Molestina Israel-Molestina added enhancement New Features, Props, & Variants (USED IN CHANGELOG) milano 20 MAX - Deploy this PR to a review environment via Milano labels Apr 11, 2023
@Israel-Molestina Israel-Molestina self-assigned this Apr 11, 2023
@Israel-Molestina Israel-Molestina requested a review from a team as a code owner April 11, 2023 15:57
@app-milano app-milano bot temporarily deployed to pr2446 April 11, 2023 16:18 Inactive
@app-milano app-milano bot temporarily deployed to pr2446 April 11, 2023 20:01 Inactive
… to a ternary operation and uncommented out a line in the default doc example
@nidaqg nidaqg added the Ready for Release merged to master, ready for a versioned released label Apr 12, 2023
@nidaqg nidaqg added this pull request to the merge queue Apr 12, 2023
Merged via the queue into master with commit e9ba3ba Apr 12, 2023
@nidaqg nidaqg deleted the PLAY-729-Avatar-imageAlt branch April 12, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New Features, Props, & Variants (USED IN CHANGELOG) milano 20 MAX - Deploy this PR to a review environment via Milano Ready for Release merged to master, ready for a versioned released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants