Skip to content

Commit bdaf848

Browse files
committed
removed -v9 endings from rule names
1 parent c313585 commit bdaf848

File tree

74 files changed

+186
-358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+186
-358
lines changed

README.md

+23-23
Large diffs are not rendered by default.

docs/rules/accordion-header-needs-labelling-v9.md renamed to docs/rules/accordion-header-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# The accordion header is a button and it needs an accessibile name e.g. text content, aria-label, aria-labelledby (`@microsoft/fluentui-jsx-a11y/accordion-header-needs-labelling-v9`)
1+
# The accordion header is a button and it needs an accessibile name e.g. text content, aria-label, aria-labelledby (`@microsoft/fluentui-jsx-a11y/accordion-header-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/accordion-item-needs-header-and-panel-v9.md renamed to docs/rules/accordion-item-needs-header-and-panel.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# An AccordionItem needs exactly one header and one panel (`@microsoft/fluentui-jsx-a11y/accordion-item-needs-header-and-panel-v9`)
1+
# An AccordionItem needs exactly one header and one panel (`@microsoft/fluentui-jsx-a11y/accordion-item-needs-header-and-panel`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/avatar-needs-name-v9.md renamed to docs/rules/avatar-needs-name.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Avatar must have an accessible labelling: name, aria-label, aria-labelledby (`@microsoft/fluentui-jsx-a11y/avatar-needs-name-v9`)
1+
# Accessibility: Avatar must have an accessible labelling: name, aria-label, aria-labelledby (`@microsoft/fluentui-jsx-a11y/avatar-needs-name`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/breadcrumb-needs-labelling-v9.md renamed to docs/rules/breadcrumb-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# All interactive elements must have an accessible name (`@microsoft/fluentui-jsx-a11y/breadcrumb-needs-labelling-v9`)
1+
# All interactive elements must have an accessible name (`@microsoft/fluentui-jsx-a11y/breadcrumb-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/checkbox-needs-labelling-v9.md renamed to docs/rules/checkbox-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Checkbox without label must have an accessible and visual label: aria-labelledby (`@microsoft/fluentui-jsx-a11y/checkbox-needs-labelling-v9`)
1+
# Accessibility: Checkbox without label must have an accessible and visual label: aria-labelledby (`@microsoft/fluentui-jsx-a11y/checkbox-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/combobox-needs-labelling-v9.md renamed to docs/rules/combobox-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# All interactive elements must have an accessible name (`@microsoft/fluentui-jsx-a11y/combobox-needs-labelling-v9`)
1+
# All interactive elements must have an accessible name (`@microsoft/fluentui-jsx-a11y/combobox-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/compound-button-needs-labelling-v9.md renamed to docs/rules/compound-button-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Compound buttons must have accessible labelling: title, aria-label, aria-labelledby, aria-describedby (`@microsoft/fluentui-jsx-a11y/compound-button-needs-labelling-v9`)
1+
# Accessibility: Compound buttons must have accessible labelling: title, aria-label, aria-labelledby, aria-describedby (`@microsoft/fluentui-jsx-a11y/compound-button-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/dropdown-needs-labelling-v9.md renamed to docs/rules/dropdown-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Dropdown menu must have an id and it needs to be linked via htmlFor of a Label (`@microsoft/fluentui-jsx-a11y/dropdown-needs-labelling-v9`)
1+
# Accessibility: Dropdown menu must have an id and it needs to be linked via htmlFor of a Label (`@microsoft/fluentui-jsx-a11y/dropdown-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/image-button-missing-aria-v9.md

-42
This file was deleted.

docs/rules/image-button-missing-aria.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Image buttons must have accessible labelling: aria-label, aria-labelledby, aria-describedby (`@microsoft/fluentui-jsx-a11y/image-button-missing-aria`)
1+
# Accessibility: Image buttons must have accessible labelling: title, aria-label, aria-labelledby, aria-describedby (`@microsoft/fluentui-jsx-a11y/image-button-missing-aria`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

@@ -14,17 +14,29 @@ Please add title, aria-label, aria-labelledby, aria-described by etc.
1414

1515
## Rule Details
1616

17-
This rule aims to prevent an icon button from having no aria label.
17+
This rule aims to prevent an icon button from not having an accessible name.
1818

1919
Examples of **incorrect** code for this rule:
2020

2121
```jsx
2222
<Button icon={<CalendarMonthRegular />} />
23+
<Button icon={<CalendarMonthRegular />}></Button>
24+
25+
<Label>Start date</Label>
26+
<Button icon={<CalendarMonthRegular />} />
2327
```
2428

2529
Examples of **correct** code for this rule:
2630

2731
```jsx
28-
<Button icon={<CalendarMonthRegular />} aria-label="Current month" />
2932
<Button icon={<CalendarMonthRegular />} title="Current month" />
33+
<Button icon={<CalendarMonthRegular />} aria-label="Start date" />
34+
<Button icon={<CalendarMonthRegular />}>Start date</Button>
35+
36+
<Label id="calendar-1">Start date</Label>
37+
<Button icon={<CalendarMonthRegular />} aria-labelledby="calendar-1" />
38+
39+
<Tooltip content="With calendar icon only" relationship="label">
40+
<Button icon={<CalendarMonthRegular />} />
41+
</Tooltip>
3042
```

docs/rules/image-link-missing-aria-v9.md renamed to docs/rules/image-link-missing-aria.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Image links must have an accessible name (`@microsoft/fluentui-jsx-a11y/image-link-missing-aria-v9`)
1+
# Accessibility: Image links must have an accessible name (`@microsoft/fluentui-jsx-a11y/image-link-missing-aria`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/input-missing-label-v9.md renamed to docs/rules/input-missing-label.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Input fields must have accessible labelling: aria-label, aria-labelledby or an associated label (`@microsoft/fluentui-jsx-a11y/input-missing-label-v9`)
1+
# Accessibility: Input fields must have accessible labelling: aria-label, aria-labelledby or an associated label (`@microsoft/fluentui-jsx-a11y/input-missing-label`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/menu-item-needs-labelling-v9.md renamed to docs/rules/menu-item-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: MenuItem without label must have an accessible and visual label: aria-labelledby (`@microsoft/fluentui-jsx-a11y/menu-item-needs-labelling-v9`)
1+
# Accessibility: MenuItem without label must have an accessible and visual label: aria-labelledby (`@microsoft/fluentui-jsx-a11y/menu-item-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/no-empty-buttons-v9.md renamed to docs/rules/no-empty-buttons.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Button, ToggleButton, SplitButton, MenuButton, CompoundButton must either text content or icon or child component (`@microsoft/fluentui-jsx-a11y/no-empty-buttons-v9`)
1+
# Accessibility: Button, ToggleButton, SplitButton, MenuButton, CompoundButton must either text content or icon or child component (`@microsoft/fluentui-jsx-a11y/no-empty-buttons`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/no-empty-components-v9.md renamed to docs/rules/no-empty-components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# FluentUI components should not be empty (`@microsoft/fluentui-jsx-a11y/no-empty-components-v9`)
1+
# FluentUI components should not be empty (`@microsoft/fluentui-jsx-a11y/no-empty-components`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/object-literal-button-no-missing-aria.md

-29
This file was deleted.

docs/rules/prefer-aria-over-title-attribute-v9.md renamed to docs/rules/prefer-aria-over-title-attribute.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# The title attribute is not consistently read by screen readers, and its behavior can vary depending on the screen reader and the user's settings (`@microsoft/fluentui-jsx-a11y/prefer-aria-over-title-attribute-v9`)
1+
# The title attribute is not consistently read by screen readers, and its behavior can vary depending on the screen reader and the user's settings (`@microsoft/fluentui-jsx-a11y/prefer-aria-over-title-attribute`)
22

33
⚠️ This rule _warns_ in the ✅ `recommended` config.
44

@@ -46,4 +46,3 @@ The aria-label will override the title attribute but the title will still displa
4646
```jsx
4747
<Button icon={<CalendarMonthRegular />} aria-label="hello world" title="hello world"></Button>
4848
```
49-

docs/rules/radio-button-missing-label-v9.md renamed to docs/rules/radio-button-missing-label.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Radio button without label must have an accessible and visual label: aria-labelledby (`@microsoft/fluentui-jsx-a11y/radio-button-missing-label-v9`)
1+
# Accessibility: Radio button without label must have an accessible and visual label: aria-labelledby (`@microsoft/fluentui-jsx-a11y/radio-button-missing-label`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/radiogroup-missing-label-v9.md renamed to docs/rules/radiogroup-missing-label.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: RadioGroup without label must have an accessible and visual label: aria-labelledby (`@microsoft/fluentui-jsx-a11y/radiogroup-missing-label-v9`)
1+
# Accessibility: RadioGroup without label must have an accessible and visual label: aria-labelledby (`@microsoft/fluentui-jsx-a11y/radiogroup-missing-label`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/spin-button-needs-labelling-v9.md renamed to docs/rules/spin-button-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: SpinButtons must have an accessible label (`@microsoft/fluentui-jsx-a11y/spin-button-needs-labelling-v9`)
1+
# Accessibility: SpinButtons must have an accessible label (`@microsoft/fluentui-jsx-a11y/spin-button-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/spin-button-unrecommended-labelling-v9.md renamed to docs/rules/spin-button-unrecommended-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Unrecommended accessibility labelling - SpinButton (`@microsoft/fluentui-jsx-a11y/spin-button-unrecommended-labelling-v9`)
1+
# Accessibility: Unrecommended accessibility labelling - SpinButton (`@microsoft/fluentui-jsx-a11y/spin-button-unrecommended-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/switch-needs-labelling-v9.md renamed to docs/rules/switch-needs-labelling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Switch must have an accessible label (`@microsoft/fluentui-jsx-a11y/switch-needs-labelling-v9`)
1+
# Accessibility: Switch must have an accessible label (`@microsoft/fluentui-jsx-a11y/switch-needs-labelling`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/text-area-missing-label-v9.md renamed to docs/rules/text-area-missing-label.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Textarea must have an accessible name (`@microsoft/fluentui-jsx-a11y/text-area-missing-label-v9`)
1+
# Accessibility: Textarea must have an accessible name (`@microsoft/fluentui-jsx-a11y/text-area-missing-label`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/text-content-button-does-not-need-aria.md

-39
This file was deleted.

docs/rules/toolbar-missing-aria-v9.md renamed to docs/rules/toolbar-missing-aria.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Toolbars need accessible labelling: aria-label or aria-labelledby (`@microsoft/fluentui-jsx-a11y/toolbar-missing-aria-v9`)
1+
# Accessibility: Toolbars need accessible labelling: aria-label or aria-labelledby (`@microsoft/fluentui-jsx-a11y/toolbar-missing-aria`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

docs/rules/tooltip-not-recommended-v9.md renamed to docs/rules/tooltip-not-recommended.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accessibility: Prefer text content or aria over a tooltip for these components MenuItem, SpinButton (`@microsoft/fluentui-jsx-a11y/tooltip-not-recommended-v9`)
1+
# Accessibility: Prefer text content or aria over a tooltip for these components MenuItem, SpinButton (`@microsoft/fluentui-jsx-a11y/tooltip-not-recommended`)
22

33
💼 This rule is enabled in the ✅ `recommended` config.
44

0 commit comments

Comments
 (0)