File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -779,7 +779,8 @@ governing permissions and limitations under the License.
779
779
background-color : transparent;
780
780
781
781
.spectrum-Menu-itemLabel ,
782
- .spectrum-Menu-sectionHeading {
782
+ .spectrum-Menu-sectionHeading ,
783
+ .spectrum-Menu-itemValue {
783
784
color : var (--highcontrast-menu-item-color-disabled , var (--mod-menu-item-label-content-color-disabled , var (--spectrum-menu-item-label-content-color-disabled )));
784
785
}
785
786
@@ -797,7 +798,8 @@ governing permissions and limitations under the License.
797
798
background-color : transparent;
798
799
799
800
.spectrum-Menu-itemLabel ,
800
- .spectrum-Menu-sectionHeading {
801
+ .spectrum-Menu-sectionHeading ,
802
+ .spectrum-Menu-itemValue {
801
803
color : var (--highcontrast-menu-item-color-disabled , var (--mod-menu-item-label-content-color-disabled , var (--spectrum-menu-item-label-content-color-disabled )));
802
804
}
803
805
Original file line number Diff line number Diff line change @@ -328,6 +328,10 @@ WithActions.args = {
328
328
{
329
329
label : "Subtract" ,
330
330
} ,
331
+ {
332
+ label : "Example of a disabled menu item" ,
333
+ isDisabled : true ,
334
+ } ,
331
335
] ,
332
336
} ;
333
337
@@ -348,6 +352,11 @@ WithValueAndActions.args = {
348
352
label : "Subtract" ,
349
353
value : "Value"
350
354
} ,
355
+ {
356
+ label : "Example of a disabled menu item" ,
357
+ value : "Value" ,
358
+ isDisabled : true ,
359
+ } ,
351
360
] ,
352
361
} ;
353
362
Original file line number Diff line number Diff line change 1
1
import { html } from "lit" ;
2
2
import { classMap } from "lit/directives/class-map.js" ;
3
- import { styleMap } from "lit/directives/style-map.js" ;
4
3
import { ifDefined } from "lit/directives/if-defined.js" ;
4
+ import { styleMap } from "lit/directives/style-map.js" ;
5
5
import { when } from "lit/directives/when.js" ;
6
6
7
7
import { Template as Checkbox } from "@spectrum-css/checkbox/stories/template.js" ;
@@ -109,6 +109,7 @@ export const MenuItem = ({
109
109
size,
110
110
isEmphasized : true ,
111
111
isChecked : isSelected ,
112
+ isDisabled,
112
113
id : `menu-checkbox-${ idx } ` ,
113
114
customClasses : [
114
115
`${ rootClass } Checkbox` ,
@@ -136,6 +137,7 @@ export const MenuItem = ({
136
137
...globals ,
137
138
size,
138
139
isChecked : isSelected ,
140
+ isDisabled,
139
141
label : null ,
140
142
id : `menu-switch-${ idx } ` ,
141
143
customClasses : [
You can’t perform that action at this time.
0 commit comments