Skip to content

Commit 91dc488

Browse files
committed
frontend: NumRowsInput: Add aria label for select val
1 parent f6f5705 commit 91dc488

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

frontend/src/components/App/Settings/NumRowsInput.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ export default function NumRowsInput(props: { defaultValue: number[] }) {
157157
renderValue={value => `${value}`}
158158
size="small"
159159
variant="outlined"
160+
inputProps={{
161+
'aria-label': `option ${selectedValue}`,
162+
}}
160163
>
161164
{options.map(option => {
162165
const isCustom = !defaultTableRowsPerPageOptions.includes(option);

frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
aria-controls=":mock-test-id:"
195195
aria-expanded="false"
196196
aria-haspopup="listbox"
197+
aria-label="option 15"
197198
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-oswssk-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
198199
role="combobox"
199200
tabindex="0"

0 commit comments

Comments
 (0)