mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add missing aria labels (#42532)
This commit is contained in:
parent
143bc5c4ea
commit
caf859f498
@ -33,7 +33,7 @@ export function AddGraphiteFunction({ funcDefs }: Props) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Segment
|
<Segment
|
||||||
Component={<Button icon="plus" variant="secondary" className={cx(styles.button)} />}
|
Component={<Button icon="plus" variant="secondary" className={cx(styles.button)} aria-label="Add new function" />}
|
||||||
options={options}
|
options={options}
|
||||||
onChange={setValue}
|
onChange={setValue}
|
||||||
inputMinWidth={150}
|
inputMinWidth={150}
|
||||||
|
@ -50,6 +50,7 @@ function GraphiteQueryEditorContent() {
|
|||||||
className={styles.toggleButton}
|
className={styles.toggleButton}
|
||||||
icon="pen"
|
icon="pen"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
|
aria-label="Toggle editor mode"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
dispatch(actions.toggleEditorMode());
|
dispatch(actions.toggleEditorMode());
|
||||||
}}
|
}}
|
||||||
|
@ -8,5 +8,5 @@ export function PlayButton() {
|
|||||||
const onClick = useCallback(() => {
|
const onClick = useCallback(() => {
|
||||||
dispatch(actions.unpause());
|
dispatch(actions.unpause());
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
return <Button icon="play" onClick={onClick} type="button" variant="secondary" />;
|
return <Button icon="play" onClick={onClick} type="button" variant="secondary" aria-label="Unpause query" />;
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ export function TagsSection({ tags, state }: Props) {
|
|||||||
}}
|
}}
|
||||||
loadOptions={debouncedGetTagsAsSegments}
|
loadOptions={debouncedGetTagsAsSegments}
|
||||||
reloadOptionsOnChange={true}
|
reloadOptionsOnChange={true}
|
||||||
Component={<Button icon="plus" variant="secondary" className={styles.button} />}
|
Component={<Button icon="plus" variant="secondary" className={styles.button} aria-label="Add new tag" />}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{state.paused && <PlayButton />}
|
{state.paused && <PlayButton />}
|
||||||
|
Loading…
Reference in New Issue
Block a user