-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Remove explicit use of aria-hidden for offcanvas when closed #35589
Conversation
a3e9765
to
40f97e9
Compare
Can you remove the dist files please? |
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 like you commited dist files. We can take care of it if needed 👌
Edit: Oh, just saw previous comment!
due to the styles `.offcanvas` styles already containing `visibility:hidden`, no need to add `aria-hidden` nor to explicitly set the `style=""` attribute when the offcanvas gets closed
40f97e9
to
57de860
Compare
urgh, stupid dist files... |
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.
LGTM 👌
@patrickhlauke it will need something more (maybe one more class like Ps: I can help if you like 😃 |
Aha, that explains it. I was wondering why all of a sudden this was setting/removing actual style attributes separately rather than just relying on classes. Clearly I'm a bit rusty (and hadn't fully checked the impact visually). Yeah if you don't mind giving an assist, that'd be awesome. |
Let me set this to draft in the meantime so it doesn't get accidentally merged prematurely |
Please check the functionality & changes, and if we agree on these, I will 'tweak' the test Just to note down, that this approach (using more classes), would help in the near future streamlining most of the js components |
@GeoSot just tested, seems to work really well. If you don't mind tweaking the tests, that'd be great |
@ffoodd I would review it but I have also put my hands in here, so your review would help us 💯 |
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 better aligned the CSS with our current code style. This is working fine so
@ffoodd forgot the |
Oh my, thanks :D |
It's ALIVE again :D |
due to the
.offcanvas
styles already containingvisibility:hidden
, no need to addaria-hidden
nor to explicitly set thestyle=""
attribute when the offcanvas gets closedCloses #35577