Skip to content

Commit

Permalink
fix(menu-button): added direct selector for icons (#2425)
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga authored Aug 20, 2024
1 parent f64118e commit 9178aae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/menu-button/menu-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ div.menu-button__item[role^="menuitem"]:last-child {
);
}

.fake-menu-button__item svg.icon--16,
.menu-button__item svg.icon--16 {
.fake-menu-button__item > svg.icon--16,
.menu-button__item > svg.icon--16 {
align-self: center;
fill: currentColor;
margin: 0 auto;
Expand All @@ -119,8 +119,8 @@ div.menu-button__item[role^="menuitem"]:last-child {
stroke-width: 0;
}

.fake-menu-button__item svg.icon--16:last-child,
.menu-button__item svg.icon--16:last-child {
.fake-menu-button__item > svg.icon--16:last-child,
.menu-button__item > svg.icon--16:last-child {
margin-left: var(--spacing-100);
}
a.fake-menu-button__item {
Expand Down
8 changes: 4 additions & 4 deletions src/sass/menu-button/menu-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ div.menu-button__item[role^="menuitem"] {
cursor: default; /* needed to override text cursor */
}

.menu-button__item svg.icon--16,
.fake-menu-button__item svg.icon--16 {
.menu-button__item > svg.icon--16,
.fake-menu-button__item > svg.icon--16 {
@include menu-menuitem-status();
}

.menu-button__item svg.icon--16:last-child,
.fake-menu-button__item svg.icon--16:last-child {
.menu-button__item > svg.icon--16:last-child,
.fake-menu-button__item > svg.icon--16:last-child {
margin-left: var(--spacing-100);
}

Expand Down

0 comments on commit 9178aae

Please sign in to comment.