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-menu-item): align arrow indication color #10695

Merged
merged 3 commits into from
Jan 30, 2025
Merged

Conversation

Todor-ads
Copy link
Member

No description provided.

@Todor-ads Todor-ads changed the title fix(ui5-meu-item): align arrow indication color fix(ui5-menu-item): align arrow indication color Jan 29, 2025
@Todor-ads Todor-ads requested a review from vladitasev January 30, 2025 07:09
@@ -108,11 +108,15 @@
inset-inline-end: var(--_ui5_menu_item_submenu_icon_right);
}

:host .ui5-menu-item-submenu-icon .ui5-menu-item-icon-end {
Copy link
Contributor

Choose a reason for hiding this comment

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

:host is redundant here and breaks the "flow" of the CSS file - usually :host selectors are first, and then the ones for the shadow root.

You don't need :host <SOME SELECTOR> - in this case :host is unnecessary.

You must use it when you need to check for something on the host:

:host([disabled]) <SOME SELECTOR>

For example:

:host([active]:not([disabled])) .ui5-li-root .ui5-li-icon {
	color: var(--sapList_Active_TextColor);
}

@vladitasev vladitasev merged commit bd898c0 into main Jan 30, 2025
10 checks passed
@vladitasev vladitasev deleted the sub-menu-arrow-color branch January 30, 2025 11:50
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.

3 participants