File tree Expand file tree Collapse file tree 7 files changed +42
-7
lines changed
packages/react-core/src/components Expand file tree Collapse file tree 7 files changed +42
-7
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class MenuToggleBase extends React.Component<MenuToggleProps> {
96
96
className = { css ( styles . menuToggleButton ) }
97
97
aria-expanded = { isExpanded }
98
98
onClick = { onClick }
99
- aria-label = " Menu toggle"
99
+ aria-label = { ariaLabel || ' Menu toggle' }
100
100
>
101
101
{ toggleControls }
102
102
</ button >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const MenuToggleTypeahead: React.FunctionComponent = () => {
16
16
} ;
17
17
18
18
return (
19
- < MenuToggle variant = "typeahead" isFullWidth >
19
+ < MenuToggle variant = "typeahead" isFullWidth aria-label = "Typeahead menu toggle" >
20
20
< TextInputGroup isPlain >
21
21
< TextInputGroupMain
22
22
value = { inputValue }
Original file line number Diff line number Diff line change @@ -137,7 +137,14 @@ export const SelectMultiTypeahead: React.FunctionComponent = () => {
137
137
} ;
138
138
139
139
const toggle = ( toggleRef : React . Ref < MenuToggleElement > ) => (
140
- < MenuToggle variant = "typeahead" onClick = { onToggleClick } innerRef = { toggleRef } isExpanded = { isOpen } isFullWidth >
140
+ < MenuToggle
141
+ variant = "typeahead"
142
+ aria-label = "Multi typeahead menu toggle"
143
+ onClick = { onToggleClick }
144
+ innerRef = { toggleRef }
145
+ isExpanded = { isOpen }
146
+ isFullWidth
147
+ >
141
148
< TextInputGroup isPlain >
142
149
< TextInputGroupMain
143
150
value = { inputValue }
Original file line number Diff line number Diff line change @@ -140,7 +140,14 @@ export const SelectMultiTypeaheadCheckbox: React.FunctionComponent = () => {
140
140
} , [ selected ] ) ;
141
141
142
142
const toggle = ( toggleRef : React . Ref < MenuToggleElement > ) => (
143
- < MenuToggle variant = "typeahead" onClick = { onToggleClick } innerRef = { toggleRef } isExpanded = { isOpen } isFullWidth >
143
+ < MenuToggle
144
+ variant = "typeahead"
145
+ aria-label = "Multi typeahead checkbox menu toggle"
146
+ onClick = { onToggleClick }
147
+ innerRef = { toggleRef }
148
+ isExpanded = { isOpen }
149
+ isFullWidth
150
+ >
144
151
< TextInputGroup isPlain >
145
152
< TextInputGroupMain
146
153
value = { inputValue }
Original file line number Diff line number Diff line change @@ -147,7 +147,14 @@ export const SelectMultiTypeaheadCreatable: React.FunctionComponent = () => {
147
147
} ;
148
148
149
149
const toggle = ( toggleRef : React . Ref < MenuToggleElement > ) => (
150
- < MenuToggle variant = "typeahead" onClick = { onToggleClick } innerRef = { toggleRef } isExpanded = { isOpen } isFullWidth >
150
+ < MenuToggle
151
+ variant = "typeahead"
152
+ aria-label = "Multi typeahead creatable menu toggle"
153
+ onClick = { onToggleClick }
154
+ innerRef = { toggleRef }
155
+ isExpanded = { isOpen }
156
+ isFullWidth
157
+ >
151
158
< TextInputGroup isPlain >
152
159
< TextInputGroupMain
153
160
value = { inputValue }
Original file line number Diff line number Diff line change @@ -143,7 +143,14 @@ export const SelectBasic: React.FunctionComponent = () => {
143
143
} ;
144
144
145
145
const toggle = ( toggleRef : React . Ref < MenuToggleElement > ) => (
146
- < MenuToggle ref = { toggleRef } variant = "typeahead" onClick = { onToggleClick } isExpanded = { isOpen } isFullWidth >
146
+ < MenuToggle
147
+ ref = { toggleRef }
148
+ variant = "typeahead"
149
+ aria-label = "Typeahead menu toggle"
150
+ onClick = { onToggleClick }
151
+ isExpanded = { isOpen }
152
+ isFullWidth
153
+ >
147
154
< TextInputGroup isPlain >
148
155
< TextInputGroupMain
149
156
value = { inputValue }
Original file line number Diff line number Diff line change @@ -154,7 +154,14 @@ export const SelectTypeaheadCreatable: React.FunctionComponent = () => {
154
154
} ;
155
155
156
156
const toggle = ( toggleRef : React . Ref < MenuToggleElement > ) => (
157
- < MenuToggle ref = { toggleRef } variant = "typeahead" onClick = { onToggleClick } isExpanded = { isOpen } isFullWidth >
157
+ < MenuToggle
158
+ ref = { toggleRef }
159
+ variant = "typeahead"
160
+ aria-label = "Typeahead creatable menu toggle"
161
+ onClick = { onToggleClick }
162
+ isExpanded = { isOpen }
163
+ isFullWidth
164
+ >
158
165
< TextInputGroup isPlain >
159
166
< TextInputGroupMain
160
167
value = { inputValue }
You can’t perform that action at this time.
0 commit comments