Skip to content
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

[Buttons] fix for active basic button text color always having a lower specificity due to !important #5832

Merged
merged 1 commit into from
Dec 22, 2017

Conversation

jayphelps
Copy link
Contributor

@jayphelps jayphelps commented Oct 4, 2017

Because the starting style for color includes !important, it always wins out against any value you set for @basicActiveTextColor.

.ui.basic.buttons .button,
.ui.basic.button {
background: @basicBackground !important;
color: @basicTextColor !important;

This PR just adds !important, which then makes it win because now the two compete with a level playing field and .ui.basic.active.button is higher than .ui.basic.button.


It's not clear why !important is used in semantic, but I imagine it has a legitimate reason and the topic discussed ad nauseam, so I think this is likely the desired solution with the status quo.

image

@jayphelps jayphelps mentioned this pull request Nov 28, 2017
@jlukic jlukic added this to the 2.2.12 milestone Dec 22, 2017
@jlukic jlukic changed the base branch from master to next December 22, 2017 06:00
@jlukic jlukic modified the milestones: 2.2.12, 2.2.13 Dec 22, 2017
@jlukic
Copy link
Member

jlukic commented Dec 22, 2017

Yep, this is a bug. Apologies for the delay.

@jlukic jlukic merged commit d1916a2 into Semantic-Org:next Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants