-
Notifications
You must be signed in to change notification settings - Fork 3
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
LOM-300 Accessibility fixes #528
Conversation
…nged arial-label to aria-labelledby in icon template
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 good, just one thing to ponder before we proceed. 🤔
templates/misc/icon.twig
Outdated
|
||
<span class="hel-icon hel-icon--{{ icon }} {{ class }}" role="img" {% if label %} aria-labelledby="{{ icon_labelled_by }}" {% else %} aria-hidden="true" {% endif %}> | ||
{% if label %} | ||
<span class="visually-hidden" id="{{ icon_labelled_by }}">{{ label }}</span> |
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.
Should this be is-hidden
instead of visually-hidden
as aria-labelledby
should work just as well with display:none
? This way ios 15 would work a bit better and we'd have even less of a chance of the label being read twice.
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.
This is switched now.
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.
Thanks! Good job! 🚀
LOM-300
What was done
How to install
composer require drupal/hdbt:dev-LOM-300_accessibility_fixes
make drush-cr
How to test
Other PRs