-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix/missing alt for profile image #12082
Fix/missing alt for profile image #12082
Conversation
Wouldn't it be ok to just use the user name without any prefix? |
It would be an improvement compared to the current situation, but we would leave the user "guessing" what the context for the image is. Ideally we would add the additional context, and I would be willing to add more translations by using google translate but first wanted to get a initial response. I'll add it for the tenant variant as well once we've settled on the way we will handle the translations (if we handle these) ** Edit ** Just discussed internally with our Accessibility Engineer and he told me the best would be to do it like this:
When we add alt text in these situations for our own projects (also for logo purposes of the company) we normally do it like this |
Thanks for clarifying, @mikeslinkman. Also, after this PR, when we add it to tenant avatars too, we should also update |
Yes, I can totally add it over there as well. I'm open to any of those but I have a slight preference for using 'Avatar' since this is also the best description when it is not an actual photo but instead shows the initials of the authenticated user. But also happy to explore other options |
+1 for avatar, its the terminology we use internally anyway |
packages/panels/resources/views/components/avatar/user.blade.php
Outdated
Show resolved
Hide resolved
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.
While this is open, please also apply this so the tenant avatar, which can use the same translation string
And add the "logo" suffix/prefix to the brand logo component alt. |
For that one, the translation string can be layout.logo.alt I think |
packages/panels/resources/views/components/avatar/tenant.blade.php
Outdated
Show resolved
Hide resolved
packages/panels/resources/views/components/avatar/tenant.blade.php
Outdated
Show resolved
Hide resolved
packages/panels/resources/views/components/avatar/user.blade.php
Outdated
Show resolved
Hide resolved
Thanks @mikeslinkman |
Description
Adds the alt attribute for the avatar of a user based on the users name.
Visual changes
No visual changes
Functional changes
composer cs
command.