-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
MDC button density is overridden by base button styles #22728
Labels
area: material/button
G
This is is related to a Google internal issue
P2
The issue is important to a large percentage of users, with a workaround
Comments
jelbourn
added
P2
The issue is important to a large percentage of users, with a workaround
G
This is is related to a Google internal issue
area: material/button
labels
May 19, 2021
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
May 20, 2021
…en by structural styles The button's density styles currently have the same specificity as the structural styles which means that they'll usually be overwritten, unless they're nested inside another selector. These changes add more specificity so that the density always has precedence. Fixes angular#22728.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jun 14, 2021
…en by structural styles The button's density styles currently have the same specificity as the structural styles which means that they'll usually be overwritten, unless they're nested inside another selector. These changes add more specificity so that the density always has precedence. Fixes angular#22728.
andrewseguin
pushed a commit
that referenced
this issue
Mar 2, 2022
…en by structural styles (#22736) The button's density styles currently have the same specificity as the structural styles which means that they'll usually be overwritten, unless they're nested inside another selector. These changes add more specificity so that the density always has precedence. Fixes #22728.
andrewseguin
pushed a commit
that referenced
this issue
Mar 2, 2022
…en by structural styles (#22736) The button's density styles currently have the same specificity as the structural styles which means that they'll usually be overwritten, unless they're nested inside another selector. These changes add more specificity so that the density always has precedence. Fixes #22728. (cherry picked from commit 3021cf5)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
forsti0506
pushed a commit
to forsti0506/components
that referenced
this issue
Apr 3, 2022
…en by structural styles (angular#22736) The button's density styles currently have the same specificity as the structural styles which means that they'll usually be overwritten, unless they're nested inside another selector. These changes add more specificity so that the density always has precedence. Fixes angular#22728.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: material/button
G
This is is related to a Google internal issue
P2
The issue is important to a large percentage of users, with a workaround
The MDC button's
button.scss
file emits the following style:When applying button density via theme mixin, the correct
height
is emitted into the theme (density -2 here):In the vast majority of cases, people will include their theme file in the document head. Angular, however, will append component-specific styles at the end of the head, meaning that the button's base styles will take precedence over the theme style.
The text was updated successfully, but these errors were encountered: