File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ export class CollapsibleCard extends React.Component<
169
169
direction = { this . props . direction }
170
170
headerAlignment = { this . props . headerAlignment ?? 'right' }
171
171
172
+ aria-expanded = { collapsable
173
+ ? ! this . props . collapsed
174
+ : undefined
175
+ }
172
176
tabIndex = { collapsable ? 0 : undefined }
173
177
ref = { this . cardRef }
174
178
onKeyDown = { this . onKeyDown }
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ class InterceptPage extends React.Component<InterceptPageProps> {
138
138
search for connectors that could work for you:
139
139
</ p >
140
140
< InterceptSearchBox
141
+ aria-label = "Filter the list of intercept options below"
141
142
value = { this . filter || '' }
142
143
onSearch = { this . onSearchInput }
143
144
/>
Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ export const GroupHeader = observer((p: {
235
235
> { ( provided , snapshot ) => < Observer > { ( ) =>
236
236
< GroupHeaderContainer
237
237
depth = { p . path . length - 1 }
238
+ aria-expanded = { ! p . collapsed }
238
239
collapsed = { p . collapsed }
239
240
editingTitle = { isEditing }
240
241
@@ -246,7 +247,14 @@ export const GroupHeader = observer((p: {
246
247
onKeyPress = { clickOnEnter }
247
248
tabIndex = { 0 }
248
249
>
249
- < DragHandle { ...provided . dragHandleProps } />
250
+ < DragHandle
251
+ aria-label = { `Drag handle for the '${
252
+ isEditing
253
+ ? unsavedTitle
254
+ : p . group . title
255
+ } ' rule group`}
256
+ { ...provided . dragHandleProps }
257
+ />
250
258
251
259
< h2 >
252
260
< Icon
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export const AddRuleRow = styled((p: {
127
127
collapsed = { true }
128
128
borderColor = 'transparent'
129
129
{ ..._ . omit ( p , 'onAdd' ) }
130
+ role = "button"
130
131
131
132
tabIndex = { 0 }
132
133
depth = { 0 }
@@ -384,6 +385,7 @@ export class RuleRow extends React.Component<{
384
385
provided . innerRef ( ref ) ;
385
386
this . containerRef = ref ;
386
387
} }
388
+ aria-expanded = { ! collapsed }
387
389
collapsed = { collapsed }
388
390
deactivated = { ! rule . activated }
389
391
disabled = { disabled }
@@ -407,7 +409,14 @@ export class RuleRow extends React.Component<{
407
409
isEditingTitle = { isEditingTitle }
408
410
onSetCustomTitle = { this . startEnteringCustomTitle }
409
411
/>
410
- < DragHandle { ...provided . dragHandleProps } />
412
+ < DragHandle
413
+ aria-label = { `Drag handle for ${
414
+ ( shouldShowCustomTitle || isEditingTitle ) && rule . title
415
+ ? `this '${ rule . title } '`
416
+ : 'this'
417
+ } mock rule`}
418
+ { ...provided . dragHandleProps }
419
+ />
411
420
412
421
413
422
{ shouldShowCustomTitle &&
You can’t perform that action at this time.
0 commit comments