Skip to content
Snippets Groups Projects
Commit 29a80dd2 authored by chris's avatar chris
Browse files

add aria label

parent e39cbe9f
No related branches found
No related tags found
1 merge request!458Hhmi accessibility
......@@ -269,7 +269,10 @@ export default ({ node, view, getPos }) => {
ref={setRef(option.value)}
type="button"
>
<StyledIconAction name="deleteOutlined" />
<StyledIconAction
label={`delete ${option.label}`}
name="deleteOutlined"
/>
</ActionButton>
)}
</span>
......
......@@ -53,7 +53,7 @@ const SwitchComponent = props => {
</Label>
)}
<Switch onChange={onChange} {...rest} />
<Switch aria-label="Is it correct" onChange={onChange} {...rest} />
{label && labelPosition === 'right' && (
<Label labelPosition={labelPosition} onClick={onChange}>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment