kopia lustrzana https://github.com/shoelace-style/shoelace
Improve menu item focus color
rodzic
a64b57245c
commit
63eb5a773f
|
|
@ -6,6 +6,10 @@ Components with the <sl-badge type="warning" pill>Experimental</sl-badge> badge
|
||||||
|
|
||||||
_During the beta period, these restrictions may be relaxed in the event of a mission-critical bug._ 🐛
|
_During the beta period, these restrictions may be relaxed in the event of a mission-critical bug._ 🐛
|
||||||
|
|
||||||
|
## Next
|
||||||
|
|
||||||
|
- Updated `sl-menu-item` focus styles
|
||||||
|
|
||||||
## 2.0.0-beta.26
|
## 2.0.0-beta.26
|
||||||
|
|
||||||
- 🚨 BREAKING CHANGE: Fixed animations bloat
|
- 🚨 BREAKING CHANGE: Fixed animations bloat
|
||||||
|
|
|
||||||
|
|
@ -15,16 +15,18 @@
|
||||||
letter-spacing: var(--sl-letter-spacing-normal);
|
letter-spacing: var(--sl-letter-spacing-normal);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: var(--sl-color-gray-700);
|
color: var(--sl-color-gray-700);
|
||||||
|
border-radius: var(--sl-border-radius-medium);
|
||||||
padding: var(--sl-spacing-xx-small) var(--sl-spacing-x-large);
|
padding: var(--sl-spacing-xx-small) var(--sl-spacing-x-large);
|
||||||
transition: var(--sl-transition-fast) fill;
|
transition: var(--sl-transition-fast) fill;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
margin: 0 var(--sl-spacing-x-small);
|
||||||
|
|
||||||
&.menu-item--focused:not(.menu-item--disabled) {
|
&.menu-item--focused:not(.menu-item--disabled) {
|
||||||
outline: none;
|
outline: none;
|
||||||
background-color: var(--sl-color-primary-50);
|
background-color: var(--sl-color-primary-500);
|
||||||
color: var(--sl-color-primary-500);
|
color: var(--sl-color-white);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.menu-item--disabled {
|
&.menu-item--disabled {
|
||||||
|
|
|
||||||
|
|
@ -185,8 +185,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sl-theme-dark sl-menu-item::part(base):focus {
|
.sl-theme-dark sl-menu-item::part(base):focus {
|
||||||
background-color: var(--sl-color-primary-950);
|
background-color: var(--sl-color-primary-600);
|
||||||
color: var(--sl-color-primary-500);
|
color: var(--sl-color-white);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sl-theme-dark sl-menu-item[disabled]::part(base) {
|
.sl-theme-dark sl-menu-item[disabled]::part(base) {
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue