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
hidden="until-found" usage broken in browsers lacking support #8961
Comments
Broke when adopting the new panels code via #8921 |
PR up for a browser feature detection fix for this (JS side) Solution from https://developer.chrome.com/articles/hidden-until-found/#caveats This article also explains the hidden until found feature really well If we do ever adopt the https://html.spec.whatwg.org/#interaction-with-details-and-hidden=until-found Looks like Safari iOS is still the laggard for support of details elements with headers https://a11ysupport.io/tech/html/summary_element |
I have merged #8962 as-is (thank you for putting this together @lb-!). Will re-open this so we look for another fix, as the solution is specific to panels while the https://github.com/wagtail/wagtail/blob/main/client/scss/generic/_normalize.scss#L54-L63 Right now it’s only the panels that use this but I think it’s important we make this usable for other parts of the admin and custom code too. The issue seems to be with the
I’m not sure where what we’re observing comes from. Maybe a special case of the style being from an attribute rather than an element. The least-work would probably be to change our reset to: [hidden]:not([hidden="until-found"]) {
/* stylelint-disable-next-line declaration-no-important */
display: none !important;
} I was hoping there would be a way to do this without increasing the specificity of that selector, but since we use Edit: on |
For anyone following this – I don’t think I’ll be able to look into this further until the very end of the month. I’ll keep this assigned for myself to look at then, but if you think this is more urgent please go for it. |
So, while this is a wider issue than #8962 addresses, it sounds like it isn't actually manifesting as a bug anywhere else - this is more about addressing technical debt. As such, I think we can reasonably bump this to 4.1. |
Issue Summary
Steps to Reproduce
Any other relevant information.
until-found
feature until we know a bit more about it (depending on time available for 4.0 RC)wagtail/client/scss/generic/_normalize.scss
Lines 59 to 63 in 3576e27
wagtail/client/src/includes/panels.ts
Lines 15 to 20 in 3576e27
Technical details
Screenshots
Safari
Firefox
The text was updated successfully, but these errors were encountered: