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

Theme: Fix blank icons having a background #1987

Merged
merged 1 commit into from Sep 25, 2021
Merged

Conversation

mgol
Copy link
Member

@mgol mgol commented Sep 24, 2021

A fix from 4325446 introduced a rule setting
background-image of a blank icon to none. However, the selector used for that
rule had lower specificity than another one: .ui-button .ui-icon which caused
dashes being shown over the icons.

We needed to increase the specificity of the .ui-icon-blank rule past the
above selector and past .ui-button:hover .ui-icon. We're doing it by repeating
the class name three times.

A fix from 4325446 introduced a rule setting
`background-image` of a blank icon to none. However, the selector used for that
rule had lower specificity than another one: `.ui-button .ui-icon` which caused
dashes being shown over the icons.

We needed to increase the specificity of the `.ui-icon-blank` rule past the
above selector and past `.ui-button:hover .ui-icon`. We're doing it by repeating
the class name three times.
Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good to me when testing in FF, Chrome, Edge and IE.

@mgol mgol merged commit 87656cd into jquery:main Sep 25, 2021
@mgol mgol deleted the blank-icon-fix branch September 25, 2021 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants