-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
Add visually-hidden class #6356
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for plone-components canceled.
|
@@ -61,3 +61,16 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) { | |||
} | |||
} | |||
} | |||
|
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.
there might be something from semantic already for visually hidden
@JeffersonBledsoe @ichim-david if we do this, we need that also in |
@JeffersonBledsoe it seems you pushed more changes than the needed in this PR. Can you take a look, please? you deleted things and files, that we cannot remove. |
a21a81b
to
9da45c9
Compare
@sneridagh @JeffersonBledsoe I've taken a deeper look and it seems that bootstrap 5 renamed sr-only to visually-hidden. This is such a standard nowadays that I doubt that it could lead to class conflicts on account of modifying such class. |
@plone/volto-accessibility I'll try to run some tests within our theme to see if I can find any conflicts. |
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.
I think this is fine from my point of view, waiting also for @Wagner3UB review if there would be any conflict with the bootstrap theme
This PR adds a
visually-hidden
class which is useful in situations where you want to provide additional information to Assistive Technology and an aria-label may not be appropriate.Questions
Todo
@plone/components
sr-only