Skip to content

Commit 85cd0e7

Browse files
committed
flow
1 parent 6b854c2 commit 85cd0e7

File tree

1 file changed

+2
-2
lines changed
  • exercises/03.best-practices/01.solution.accessibility-selectors

1 file changed

+2
-2
lines changed

exercises/03.best-practices/01.solution.accessibility-selectors/README.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ I'm going to start by locating the discount code input on the page. This one:
1717
/>
1818
```
1919

20-
A user would find this input by its _label text_ because they would see that it says "Discount code" above that input. When creating the `<DiscountCode />` component, I've made sure to have an accessible layout by associating a `label` element with the input by its `id`:
20+
A user would find this input by its _label text_ because they would see that it says "Discount code" above that input. When creating the `<DiscountCode />` component, I've made sure to have accessible markup by associating a `label` element with the input by its `id`:
2121

2222
```tsx filename=discount-code-form.tsx highlight=2,8
2323
<label
@@ -120,7 +120,7 @@ But there are also elements that don't. Some derive their accessible name from t
120120
121121
And then there are elements that don't need accessible name at all. Those include `<section>`, `<p>`, `<span>`, or images that are purelly illustrational.
122122

123-
<callout-success>Select elements by their accessible name if it has one, otherwise select it by their text content. Do not add ARIA role attributes or accessible names where they are not needed! The goal is always accessible layout first, tests second. Never the other way around. See [Naming techniques](https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/#naming_techniques) for more details.</callout-success>
123+
<callout-success>Select elements by their accessible name if it has one, otherwise select it by their text content. Do not add ARIA role attributes or accessible names where they are not needed! The goal is always accessible markup first, tests second. Never the other way around. See [Naming techniques](https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/#naming_techniques) for more details.</callout-success>
124124

125125
### Text content
126126

0 commit comments

Comments
 (0)