You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a button inside a panel heading, and the button has a badge on it. The badge is being styled based on being inside the panel heading rather than based on being inside the button, i.e. this rule:
Of course, I can add the correct colour styling manually to the span to solve my immediate problem, but I would suggest that the styles for badges within button types are moved to later in the CSS file than the styles for badges within panel headers.
The text was updated successfully, but these errors were encountered:
We can't really scope these styles any better. If we scope them with a > selector to make things more specific and prevent this inheritance, we screw up folks' implementations where they have even a single wrapping element around those badges.
Not sure we can address this in v3, so punting for now. Holler if anyone has any ideas though, save for overriding things one more time just for buttons.
I have a button inside a panel heading, and the button has a badge on it. The badge is being styled based on being inside the panel heading rather than based on being inside the button, i.e. this rule:
is taking precedence over this rule:
This is causing my badge to look like this:
Code example here.
Of course, I can add the correct colour styling manually to the span to solve my immediate problem, but I would suggest that the styles for badges within button types are moved to later in the CSS file than the styles for badges within panel headers.
The text was updated successfully, but these errors were encountered: