diff --git a/site/content/docs/06-accessibility-warnings.md b/site/content/docs/06-accessibility-warnings.md index 1458a0a536..b151349e67 100644 --- a/site/content/docs/06-accessibility-warnings.md +++ b/site/content/docs/06-accessibility-warnings.md @@ -153,7 +153,7 @@ There are two supported ways to associate a label with a control: ``` -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 diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index 9490237d18..87af46a7fe 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -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);