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

fix(ui5-shellbar): Profile is styled correctly on IE #1807

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

vladitasev
Copy link
Contributor

The CSS generated for IE for ::slotted(ui5-avatar) is ui5-shellbar ui5-avatar, which is weaker than ui5-avatar[size=S]. Therefore, it is not applied. This is unfortunately unavoidable because IE does not support ::slotted and it's hard to replace it with an equally strong selector. Therefore in such cases it's best to make the expression inside ::slotted() equally strong, if possible. Here it is by setting the slot name too. Now it generates ui5-shellbar ui5-avatar[slot="profile"] which is stronger than ui5-avatar[size=S].

closes: #1806

@vladitasev vladitasev merged commit 4198599 into master Jun 16, 2020
@vladitasev vladitasev deleted the fix-shellbar-avatar-ie branch June 16, 2020 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in Legacy Edge with UI5 Webcomponents
2 participants