-
Notifications
You must be signed in to change notification settings - Fork 645
Avatar: add alt and src #1416
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
Avatar: add alt and src #1416
Conversation
|
size-limit report 📦
|
@siddharthkp Is this |
Hi @alliethu! Whoops, bad choice of words on my side! The rendered alt text is still an empty string by default (didn't change that). However, we show the wrong value in the documentation ( The preview is deployed here: preview/Avatar The rendered alt text is an empty string: |
|
@siddharthkp Perfect! Thank you for clarifying!! 🙇🏼♀️ |
colebemis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks for doing this, @siddharthkp! ✨
I agree with all of the things you listed in Room for improvement. Do you want to open up PRs for those next?
Co-authored-by: Cole Bemis <colebemis@github.com>
Sounds good 👍 What's our merge process, do I just merge this when the build passes? |
Yeah, go ahead and merge it 🚢 |


Describe your changes here.
Closes #1405
Screenshots
before:


after:
Worth mentioning
I've made
alttext optional based on @alliethu's comment. We set the default value to""(empty string) so that screen readers ignore it.Room for improvement
altshows up as-even though the value is an empty string. This is because we setsavePropValueAsStringwhich treatsundefinedand""the same. It would be interesting to show an explicit empty string asnulland empty string have different meaning foralt(reference via @alliethu, thx! 👋 )Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.