Skip to content

Commit

Permalink
fix(stepped process): convert current step to plain text for better a…
Browse files Browse the repository at this point in the history
…11y (#1663)
  • Loading branch information
MewenLeHo authored Nov 30, 2022
1 parent 2274e0c commit cdcadcb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scss/_stepped-process.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
color: var(--#{$prefix}stepped-process-link-color);
}

&:hover {
&[href]:hover {
text-decoration: if($link-hover-decoration == underline, null, underline);
}

Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/5.2/components/stepped-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Add `.active` to a `.stepped-process-item` to indicate the current step, alongsi
<a class="stepped-process-link" href="#" title="1. #">#</a>
</li>
<li class="stepped-process-item active">
<a class="stepped-process-link" href="#" title="2. Review" aria-current="step">Review</a>
<a class="stepped-process-link" title="2. Review" aria-current="step">Review</a>
</li>
<li class="stepped-process-item">
<a class="stepped-process-link" href="#" title="3. Delivery">Delivery</a>
Expand Down Expand Up @@ -55,7 +55,7 @@ Add `.stepped-process-dark` to the `.stepped-process` for a dark variant.
<a class="stepped-process-link" href="#" title="1. #">#</a>
</li>
<li class="stepped-process-item active">
<a class="stepped-process-link" href="#" title="2. Review" aria-current="step">Review</a>
<a class="stepped-process-link" title="2. Review" aria-current="step">Review</a>
</li>
<li class="stepped-process-item">
<a class="stepped-process-link" href="#" title="3. Delivery">Delivery</a>
Expand Down
9 changes: 9 additions & 0 deletions site/content/docs/5.2/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ Boosted v5.2.3 has landed with a handful of urgent bug fixes from Bootstrap and

If you need more details about the changes, please refer to the [v5.2.3 release](https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/releases/tag/v5.2.3).

### Components

- **Stepped Process**
- Current step has been slightly changed for accessibility purpose; the link to this step has been converted to plain text. Please reflect this modification into your websites.
```diff
- <a class="stepped-process-link" href="#" title="2. Review" aria-current="step">Review</a>
+ <a class="stepped-process-link" title="2. Review" aria-current="step">Review</a>
```

## v5.2.2

<hr class="mb-4">
Expand Down

0 comments on commit cdcadcb

Please # to comment.