Compare commits

...

2 Commits

Author SHA1 Message Date
vaidankarswapnil
9eb5b0a1f6 Updated 1 test snapshot 2022-01-25 13:16:18 +05:30
vaidankarswapnil
2dd20e793f Fixed a11y issue for Settings pane spinbuttons 2022-01-25 09:14:39 +05:30
2 changed files with 4 additions and 0 deletions

View File

@@ -231,6 +231,8 @@ export const SettingsPane: FunctionComponent = () => {
onDecrement={(newValue) => setMaxDegreeOfParallelism(parseInt(newValue) - 1 || maxDegreeOfParallelism)}
onValidate={(newValue) => setMaxDegreeOfParallelism(parseInt(newValue) || maxDegreeOfParallelism)}
ariaLabel="Max degree of parallelism"
incrementButtonAriaLabel="Increase value by 1"
decrementButtonAriaLabel="Decrease value by 1"
/>
</div>
</div>

View File

@@ -143,7 +143,9 @@ exports[`Settings Pane should render Default properly 1`] = `
<StyledSpinButton
ariaLabel="Max degree of parallelism"
className="textfontclr"
decrementButtonAriaLabel="Decrease value by 1"
id="max-degree"
incrementButtonAriaLabel="Increase value by 1"
min={-1}
onDecrement={[Function]}
onIncrement={[Function]}