Skip to content

Commit

Permalink
fix(ComponentDemo): update themed overflow menu styles
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Apr 29, 2021
1 parent b7bcfae commit e72a2ab
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/components/ComponentDemo/ComponentDemo.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ fieldset.form-group:last-of-type {
body[data-live-preview-theme='White'] [class^='bx--tooltip'],
body[data-live-preview-theme='White']
[class^='flatpickr-calendar'][class*='open'],
body[data-live-preview-theme='White'] ul[class^='bx--overflow-menu-options'],
.white {
@include carbon--theme(
$theme: $carbon--theme--white,
Expand All @@ -322,6 +323,7 @@ body[data-live-preview-theme='White']
body[data-live-preview-theme='Gray 10'] [class^='bx--tooltip'],
body[data-live-preview-theme='Gray 10']
[class^='flatpickr-calendar'][class*='open'],
body[data-live-preview-theme='Gray 10'] ul[class^='bx--overflow-menu-options'],
.g10 {
@include carbon--theme(
$theme: $carbon--theme--g10,
Expand All @@ -332,6 +334,7 @@ body[data-live-preview-theme='Gray 10']
body[data-live-preview-theme='Gray 90'] [class^='bx--tooltip'],
body[data-live-preview-theme='Gray 90']
[class^='flatpickr-calendar'][class*='open'],
body[data-live-preview-theme='Gray 90'] ul[class^='bx--overflow-menu-options'],
.g90 {
@include carbon--theme(
$theme: $carbon--theme--g90,
Expand All @@ -342,6 +345,7 @@ body[data-live-preview-theme='Gray 90']
body[data-live-preview-theme='Gray 100'] [class^='bx--tooltip'],
body[data-live-preview-theme='Gray 100']
[class^='flatpickr-calendar'][class*='open'],
body[data-live-preview-theme='Gray 100'] ul[class^='bx--overflow-menu-options'],
.g100 {
@include carbon--theme(
$theme: $carbon--theme--g100,
Expand Down Expand Up @@ -390,6 +394,18 @@ body[data-live-preview-theme='Gray 100']
height: 2.5rem;
}

[class*='--overflow-menu__icon'] {
fill: var(--cds-icon-01, #161616);
}

[class$='--overflow-menu']:hover {
background-color: var(--cds-hover-ui, #e5e5e5);
}

[class*='--overflow-menu'][class*='--overflow-menu--open'] {
background-color: var(--cds-ui-01, #f4f4f4);
}

[class*='--search--sm'],
[class*='--search--lg'],
[class*='--search--xl'],
Expand All @@ -410,4 +426,34 @@ body {
.flatpickr-calendar.open {
background-color: var(--cds-ui-01, #ffffff);
}

[class*='--overflow-menu-options'][class*='--overflow-menu-options--open'] {
background-color: var(--cds-ui-01, #f4f4f4);

&::after {
background-color: var(--cds-ui-01, #f4f4f4);
}
}

[class$='--overflow-menu-options__option']:hover,
[class*='--overflow-menu-options__option'][class$='--overflow-menu--divider']:hover {
background-color: var(--cds-hover-ui, #e5e5e5);
}

[class$='--overflow-menu-options__option']:hover
[class*='--overflow-menu-options'] {
background-color: transparent;
}

[class*='--overflow-menu-options__btn'] {
color: var(--cds-text-02, #525252);

&:hover {
color: var(--cds-text-01, #161616);
}

&:focus {
outline: 2px solid var(--cds-focus, #0f62fe);
}
}
}

0 comments on commit e72a2ab

Please sign in to comment.