Update site/content/docs/05-accessibility-warnings.md

Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
pull/7774/head
Tan Li Hau 4 years ago committed by tanhauhau
parent 5b1c866270
commit bd03c70516

@ -153,7 +153,7 @@ There are two supported ways to associate a label with a control:
<label>A</label>
```
If your label and input are Svelte components, you can configure the rule to be aware of your custom components.
If your label and input are Svelte components, you can configure the rule to be aware of your Svelte components.
```svelte
<CustomInputLabel label="Surname">

@ -31,8 +31,8 @@ import {
is_interactive_roles,
is_hidden_from_screen_reader,
is_semantic_role_element,
may_contain_input_child,
} from "../utils/a11y";
may_contain_input_child
} from '../utils/a11y';
const aria_attributes = 'activedescendant atomic autocomplete busy checked colcount colindex colspan controls current describedby description details disabled dropeffect errormessage expanded flowto grabbed haspopup hidden invalid keyshortcuts label labelledby level live modal multiline multiselectable orientation owns placeholder posinset pressed readonly relevant required roledescription rowcount rowindex rowspan selected setsize sort valuemax valuemin valuenow valuetext'.split(' ');
const aria_attribute_set = new Set(aria_attributes);

Loading…
Cancel
Save