Skip to content

Commit

Permalink
fix(menu): use higher specificity to provide correct styling for disa…
Browse files Browse the repository at this point in the history
…bled states
  • Loading branch information
pfulton committed Jan 31, 2024
1 parent fa8cd37 commit 36e0183
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/menu/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,16 @@ governing permissions and limitations under the License.

&:hover {
cursor: default;
background-color: transparent;

.spectrum-Menu-itemLabel,
.spectrum-Menu-sectionHeading {
color: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-label-content-color-disabled, var(--spectrum-menu-item-label-content-color-disabled)));
}

.spectrum-Menu-itemDescription {
color: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-description-color-disabled, var(--spectrum-menu-item-description-color-disabled)));
}

.spectrum-Menu-itemIcon {
fill: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-label-icon-color-disabled, var(--spectrum-menu-item-label-icon-color-disabled)));
Expand Down

0 comments on commit 36e0183

Please sign in to comment.