[PLAY-729] 🛠️ Update Avatar kit imageAlt default #2446
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
orimage_alt
to pass into the alt attribute. Therefore if a user did not pass in animageAlt
prop the alt attribute would be left empty. I've created a conditional that checks for animageAtl
prop, if there is none, it passes thename
prop as the alt attribute.Screenshots: Screenshots to visualize your addition/change
How to test? Steps to confirm the desired behavior:
imageAlt
prop being passes in the image has an alt attribute.Checklist:
enhancement
,bug
,improvement
,new kit
,deprecated
, orbreaking
. See Changelog & Labels for details.milano
label to show I'm ready for a review.