Skip to content

Increase [hidden] specificity #34903

Answered by ffoodd
CyrilKrylatov asked this question in Ideas
Discussion options

You must be logged in to vote

I tend to think you'd better toggle .d-*-none insted of [hidden] to hide something. We provide [hidden] styles in our reboot only to ensure our defaults won't show something it shouldn't— however from my point of view, using .d-md-flex means you really want this being displayed.

That's the whole point of utilities, so playing at this level requires to use the equivalent power (another utility) to hide something.

Bumping specificity is not something we'll do in our core, and making an attribute selector win over a utility class selector neither.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@CyrilKrylatov
Comment options

@lordfpx
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by CyrilKrylatov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants