Skip to content

Fix tab header icons not shown #929

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

Merged
merged 1 commit into from
Jun 6, 2018
Merged

Conversation

danxuliu
Copy link
Member

This pull request fixes a regression introduced in ac9a949

Although in that commit the same change that caused this regression (replacing individual background-XXX properties with the general background property) was applied too to .participantWithList li > a in that case it does not seem to have caused any problem (the background property in that element it looks like dead code without any effect, by the way).

Before:
tab-header-icon-before

After:
tab-header-icon-after

The links in the tab header use an "icon-XXX" CSS class to define the
icon that is shown next to it; icons are defined using a
"background-image" CSS property in a ".icon-XXX" CSS selector.

The links in the tab header have their own CSS rules to place them in
the right position. Those CSS rules use a more specific selector than
the one used for the icons, so the CSS rules for the links in the tab
header override the CSS rules for the icons. Therefore, the
"background-repeat" and "background-position" properties must be
specified individually. Otherwise, if the general "background" CSS
property is used the "background-image" from the icon would be overriden
with a null image and thus no icon would be shown.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@Ivansss Ivansss merged commit 0569b50 into master Jun 6, 2018
@Ivansss Ivansss deleted the fix-tab-header-icons-not-shown branch June 6, 2018 08:22
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