Skip to content

Commit fd64418

Browse files
committed
Add ARIA labels to transform select dropdowns
1 parent 9e4286f commit fd64418

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/modify/handler-config.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ const MethodTransformConfig = (props: {
954954
}) => {
955955
return <TransformConfig active={!!props.replacementMethod}>
956956
<SelectTransform
957+
aria-label='Select how the method should be transformed'
957958
value={props.replacementMethod ?? 'none'}
958959
onChange={(event: React.ChangeEvent<HTMLSelectElement>) => {
959960
const value = event.target.value as 'none' | MethodName;
@@ -987,6 +988,7 @@ const StatusTransformConfig = (props: {
987988

988989
return <TransformConfig active={selected !== 'none'}>
989990
<SelectTransform
991+
aria-label='Select how the status should be transformed'
990992
value={selected ?? 'none'}
991993
onChange={(event: React.ChangeEvent<HTMLSelectElement>) => {
992994
const value = event.target.value as 'none' | 'replace';
@@ -1051,6 +1053,7 @@ class HeadersTransformConfig<T extends RequestTransform | ResponseTransform> ext
10511053

10521054
return <TransformConfig active={selected !== 'none'}>
10531055
<SelectTransform
1056+
aria-label={`Select how the ${type} headers should be transformed`}
10541057
value={selected}
10551058
onChange={onTransformTypeChange}
10561059
>
@@ -1146,6 +1149,7 @@ class BodyTransformConfig<T extends RequestTransform | ResponseTransform> extend
11461149

11471150
return <TransformConfig active={selected !== 'none'}>
11481151
<SelectTransform
1152+
aria-label={`Select how the ${type} body should be transformed`}
11491153
value={selected}
11501154
onChange={onTransformTypeChange}>
11511155
<option value='none'>Pass through the real { type } body</option>

0 commit comments

Comments
 (0)