-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
v4 [hidden] attribute #17169
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
Comments
For any unsupported browser you can easily add support by just including the following CSS: [hidden] { display: none; } This will work back to IE6, which doesn’t support the attribute selector. In other words, basically: https://github.com/twbs/bootstrap/blob/v4-dev/scss/_utilities.scss#L35 With that said, the workaround is not universal as it only patches attribute behavior to sort of mimic property behavior. I personally don't see any benefit in having a class for this as well. |
Closing per @kkirsche's comment. |
Mentioned some of this in the docs in cf7819d, FYI. |
Thanks @kkirsche. So declaring |
@CoralSilver in regards to why it was removed and conflicts I would need to defer to @mdo / @cvrebert and the rest of the team as that's not an aspect I am familiar with. Sorry! |
Unsure of the feasibility honestly, we'll have to check it out. |
Couldn't you remove |
So, the two changes were made separately and not considered together. <div class="x">Foo</div>
<div class="x" hidden>Bar</div> .x {
display: inline-block;
} both "Foo" and "Bar" will be visible. This can be corrected by making the |
Arguably yes, particularly considering the changes coming in jQuery 3.0 (see the "Simplified |
Yeah, that is weird that |
It's certainly more semantic. The semantic meaning of Yeah, the interaction with jQuery could stand to be documented. |
I think mentioning in the docs that |
As |
@CoralSilver there's no reason for us to deprecate it in my opinion. V4 is a major update and as such we should probably not deprecate things as this is our chance per semantic versioning to make non backwards compatible changes. Keeping it as deprecated will keep it until V5 which while small starts this type of questioning about any and all classes which I think the core team would want to avoid. X-Ref: #17240 |
Makes sense. Thanks. |
We all good here or is there something else to tackle yet? |
@mdo I got this. |
Resolved by #17689. |
The hidden attribute isn't supported in IE9 or 10. The comments say
// Always hide an element with the
hiddenHTML attribute (from PureCSS).
(instead of the old hidden class), but PureCSS includes a.hidden
class along with the attribute.The text was updated successfully, but these errors were encountered: