File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
@react-spectrum/listbox/stories Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ governing permissions and limitations under the License.
52
52
}
53
53
54
54
& .is-disabled {
55
+ .spectrum-Menu-description {
56
+ color : var (--spectrum-selectlist-option-text-color-disabled );
57
+ }
55
58
background-color : var (--spectrum-selectlist-option-background-color-disabled );
56
59
background-image : none;
57
60
color : var (--spectrum-selectlist-option-text-color-disabled );
Original file line number Diff line number Diff line change @@ -667,36 +667,38 @@ export const WithSemanticElementsStatic = {
667
667
flexGrow = { 1 }
668
668
aria-labelledby = "label"
669
669
selectionMode = "multiple"
670
+ disabledKeys = { [ 'paste' , 'floof' ] }
670
671
onSelectionChange = { action ( 'onSelectionChange' ) } >
671
672
< Section title = "Section 1" >
672
- < Item textValue = "Copy" >
673
+ < Item key = "copy" textValue = "Copy" >
673
674
< Copy size = "S" />
674
675
< Text > Copy</ Text >
675
676
</ Item >
676
- < Item textValue = "Cut" >
677
+ < Item key = "cut" textValue = "Cut" >
677
678
< Cut size = "S" />
678
679
< Text > Cut</ Text >
679
680
</ Item >
680
- < Item textValue = "Paste" >
681
+ < Item key = "paste" textValue = "Paste" >
681
682
< Paste size = "S" />
682
683
< Text > Paste</ Text >
683
684
</ Item >
684
685
</ Section >
685
686
< Section title = "Section 2" >
686
- < Item textValue = "Puppy" >
687
+ < Item key = "puppy" textValue = "Puppy" >
687
688
< AlignLeft size = "S" />
688
689
< Text > Puppy</ Text >
689
690
< Text slot = "description" > Puppy description super long as well geez</ Text >
690
691
</ Item >
691
- < Item textValue = "Doggo with really really really long long long text" >
692
- < AlignCenter size = "S" />
693
- < Text > Doggo with really really really long long long text</ Text >
694
- </ Item >
695
- < Item textValue = "Floof" >
692
+ < Item key = "floof" textValue = "Floof" >
696
693
< AlignRight size = "S" />
697
694
< Text > Floof</ Text >
695
+ < Text slot = "description" > Floof medium description</ Text >
696
+ </ Item >
697
+ < Item key = "doggo" textValue = "Doggo with really really really long long long text" >
698
+ < AlignCenter size = "S" />
699
+ < Text > Doggo with really really really long long long text</ Text >
698
700
</ Item >
699
- < Item > Basic Item</ Item >
701
+ < Item key = "basic" > Basic Item</ Item >
700
702
</ Section >
701
703
</ ListBox >
702
704
) ,
You can’t perform that action at this time.
0 commit comments