Skip to content

Commit

Permalink
style: run prettier on web/accessibility (mdn#20686)
Browse files Browse the repository at this point in the history
* style: run pretteier on web/accessibility

* Apply suggestions from code review

Co-authored-by: Estelle Weyl <[email protected]>

* Update files/en-us/web/accessibility/aria/attributes/aria-keyshortcuts/index.md

Co-authored-by: Estelle Weyl <[email protected]>
  • Loading branch information
nschonni and estelle authored Sep 25, 2022
1 parent e6c35f6 commit 22203bf
Show file tree
Hide file tree
Showing 61 changed files with 103 additions and 72 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Accessibility: What users can do to browse more safely'
title: "Accessibility: What users can do to browse more safely"
slug: Web/Accessibility/Accessibility:_What_users_can_to_to_browse_safely
tags:
- color
Expand Down
5 changes: 4 additions & 1 deletion files/en-us/web/accessibility/aria/annotations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ We could even provide an information box saying who made the suggestion and when
```html
<p>
Freida's pet is a
<span role="suggestion" aria-details="comment-source"><span role="deletion">black Cat called Luna</span><span role="insertion">purple Tyrannosaurus Rex called Tiny</span></span>.
<span role="suggestion" aria-details="comment-source">
<span role="deletion">black Cat called Luna</span>
<span role="insertion">purple Tyrannosaurus Rex called Tiny</span></span
>.
</p>

<div id="comment-source">
Expand Down
6 changes: 4 additions & 2 deletions files/en-us/web/accessibility/aria/aria_live_regions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ A website specializing in providing information about planets provides a dropdow
</div>

<p>
<small>Information from
<a href="https://en.wikipedia.org/wiki/Solar_System">Wikipedia</a></small>
<small>
Information from
<a href="https://en.wikipedia.org/wiki/Solar_System">Wikipedia</a>
</small>
</p>
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Using ARIA: Roles, states, and properties'
title: "Using ARIA: Roles, states, and properties"
slug: Web/Accessibility/ARIA/ARIA_Techniques
tags:
- ARIA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-activedescendant'
title: "aria-activedescendant"
slug: Web/Accessibility/ARIA/Attributes/aria-activedescendant
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-atomic'
title: "aria-atomic"
slug: Web/Accessibility/ARIA/Attributes/aria-atomic
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-autocomplete'
title: "aria-autocomplete"
slug: Web/Accessibility/ARIA/Attributes/aria-autocomplete
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-colindex'
title: "aria-colindex"
slug: Web/Accessibility/ARIA/Attributes/aria-colindex
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-dropeffect'
title: "aria-dropeffect"
slug: Web/Accessibility/ARIA/Attributes/aria-dropeffect
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-flowto'
title: "aria-flowto"
slug: Web/Accessibility/ARIA/Attributes/aria-flowto
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ The `aria-keyshortcuts` attribute is very similar to the [problematic](https://w

```html
<p>
Press the <strong><u>S</u></strong>tress reliever to relax!
Press the
<strong><u>S</u></strong>tress reliever to relax!
</p>
<button accesskey="s">Stress reliever</button>
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-level'
title: "aria-level"
slug: Web/Accessibility/ARIA/Attributes/aria-level
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-live'
title: "aria-live"
slug: Web/Accessibility/ARIA/Attributes/aria-live
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-multiline'
title: "aria-multiline"
slug: Web/Accessibility/ARIA/Attributes/aria-multiline
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-owns'
title: "aria-owns"
slug: Web/Accessibility/ARIA/Attributes/aria-owns
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-posinset'
title: "aria-posinset"
slug: Web/Accessibility/ARIA/Attributes/aria-posinset
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-pressed'
title: "aria-pressed"
slug: Web/Accessibility/ARIA/Attributes/aria-pressed
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-relevant'
title: "aria-relevant"
slug: Web/Accessibility/ARIA/Attributes/aria-relevant
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-rowcount'
title: "aria-rowcount"
slug: Web/Accessibility/ARIA/Attributes/aria-rowcount
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-valuemin'
title: "aria-valuemin"
slug: Web/Accessibility/ARIA/Attributes/aria-valuemin
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'aria-valuetext'
title: "aria-valuetext"
slug: Web/Accessibility/ARIA/Attributes/aria-valuetext
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ If an element already has `role="alert"` and is initially hidden using CSS, maki

```css
.hidden {
display:none;
display: none;
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: application role'
title: "ARIA: application role"
slug: Web/Accessibility/ARIA/Roles/application_role
tags:
- ARIA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: command role'
title: "ARIA: command role"
slug: Web/Accessibility/ARIA/Roles/command_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: composite role'
title: "ARIA: composite role"
slug: Web/Accessibility/ARIA/Roles/composite_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: directory role'
title: "ARIA: directory role"
slug: Web/Accessibility/ARIA/Roles/directory_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: feed role'
title: "ARIA: feed role"
slug: Web/Accessibility/ARIA/Roles/feed_role
tags:
- ARIA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: generic role'
title: "ARIA: generic role"
slug: Web/Accessibility/ARIA/Roles/generic_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: gridcell role'
title: "ARIA: gridcell role"
slug: Web/Accessibility/ARIA/Roles/gridcell_role
tags:
- ARIA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: heading role'
title: "ARIA: heading role"
slug: Web/Accessibility/ARIA/Roles/heading_role
tags:
- ARIA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: input role'
title: "ARIA: input role"
slug: Web/Accessibility/ARIA/Roles/input_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: landmark role'
title: "ARIA: landmark role"
slug: Web/Accessibility/ARIA/Roles/landmark_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: list role'
title: "ARIA: list role"
slug: Web/Accessibility/ARIA/Roles/list_role
tags:
- ARIA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: listitem role'
title: "ARIA: listitem role"
slug: Web/Accessibility/ARIA/Roles/listitem_role
tags:
- ARIA
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/accessibility/aria/roles/log_role/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: log role'
title: "ARIA: log role"
slug: Web/Accessibility/ARIA/Roles/log_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: marquee role'
title: "ARIA: marquee role"
slug: Web/Accessibility/ARIA/Roles/marquee_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: menubar role'
title: "ARIA: menubar role"
slug: Web/Accessibility/ARIA/Roles/menubar_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: menuitemcheckbox role'
title: "ARIA: menuitemcheckbox role"
slug: Web/Accessibility/ARIA/Roles/menuitemcheckbox_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: menuitemradio role'
title: "ARIA: menuitemradio role"
slug: Web/Accessibility/ARIA/Roles/menuitemradio_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: navigation Role'
title: "ARIA: navigation Role"
slug: Web/Accessibility/ARIA/Roles/navigation_role
tags:
- ARIA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: none role'
title: "ARIA: none role"
slug: Web/Accessibility/ARIA/Roles/none_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: option role'
title: "ARIA: option role"
slug: Web/Accessibility/ARIA/Roles/option_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: range role'
title: "ARIA: range role"
slug: Web/Accessibility/ARIA/Roles/range_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: roletype role'
title: "ARIA: roletype role"
slug: Web/Accessibility/ARIA/Roles/roletype_role
tags:
- roletype
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: search role'
title: "ARIA: search role"
slug: Web/Accessibility/ARIA/Roles/search_role
tags:
- ARIA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: section role'
title: "ARIA: section role"
slug: Web/Accessibility/ARIA/Roles/section_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: sectionhead role'
title: "ARIA: sectionhead role"
slug: Web/Accessibility/ARIA/Roles/sectionhead_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: select role'
title: "ARIA: select role"
slug: Web/Accessibility/ARIA/Roles/select_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: status role'
title: "ARIA: status role"
slug: Web/Accessibility/ARIA/Roles/status_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: document structural roles'
title: "ARIA: document structural roles"
slug: Web/Accessibility/ARIA/Roles/structural_roles
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: structure role'
title: "ARIA: structure role"
slug: Web/Accessibility/ARIA/Roles/structure_role
tags:
- Accessibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ When you've got a content change that involves an insertion _and_ a deletion, th
Freida's pet is a
<span role="suggestion">
<span role="deletion">black Cat called Luna</span>
<span role="insertion">purple T. Rex called Tiny</span> </span>.
<span role="insertion">purple T. Rex called Tiny</span>
</span>.
</p>
```

Expand All @@ -31,7 +32,8 @@ We could even provide an information box saying who made the suggestion and when
Freida's pet is a
<span role="suggestion" aria-details="comment-source">
<span role="deletion">black Cat called Luna</span>
<span role="insertion">purple T. Rex called Tiny</span> </span>.
<span role="insertion">purple T. Rex called Tiny</span>
</span>.
</p>

<div id="comment-source">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'ARIA: tablist role'
title: "ARIA: tablist role"
slug: Web/Accessibility/ARIA/Roles/tablist_role
tags:
- Accessibility
Expand Down
Loading

0 comments on commit 22203bf

Please sign in to comment.