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 (
|
||||
<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}
|
||||
onChange={setValue}
|
||||
inputMinWidth={150}
|
||||
|
@ -50,6 +50,7 @@ function GraphiteQueryEditorContent() {
|
||||
className={styles.toggleButton}
|
||||
icon="pen"
|
||||
variant="secondary"
|
||||
aria-label="Toggle editor mode"
|
||||
onClick={() => {
|
||||
dispatch(actions.toggleEditorMode());
|
||||
}}
|
||||
|
@ -8,5 +8,5 @@ export function PlayButton() {
|
||||
const onClick = useCallback(() => {
|
||||
dispatch(actions.unpause());
|
||||
}, [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}
|
||||
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 />}
|
||||
|
Loading…
Reference in New Issue
Block a user