From cdcadcb54ab1a64783f892092372d4c771cba150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mewen=20Le=20H=C3=B4?= <92363071+MewenLeHo@users.noreply.github.com> Date: Wed, 30 Nov 2022 13:42:37 +0100 Subject: [PATCH] fix(stepped process): convert current step to plain text for better a11y (#1663) --- scss/_stepped-process.scss | 2 +- site/content/docs/5.2/components/stepped-process.md | 4 ++-- site/content/docs/5.2/migration.md | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/scss/_stepped-process.scss b/scss/_stepped-process.scss index af6e6e1ea6..e3e0387bf3 100644 --- a/scss/_stepped-process.scss +++ b/scss/_stepped-process.scss @@ -109,7 +109,7 @@ color: var(--#{$prefix}stepped-process-link-color); } - &:hover { + &[href]:hover { text-decoration: if($link-hover-decoration == underline, null, underline); } diff --git a/site/content/docs/5.2/components/stepped-process.md b/site/content/docs/5.2/components/stepped-process.md index 4dee9429bb..02cd37c5b8 100644 --- a/site/content/docs/5.2/components/stepped-process.md +++ b/site/content/docs/5.2/components/stepped-process.md @@ -26,7 +26,7 @@ Add `.active` to a `.stepped-process-item` to indicate the current step, alongsi Sign in