From 1dfe4447759d7a716d97e33e38c37532801b000e Mon Sep 17 00:00:00 2001 From: Gethin Webster Date: Fri, 4 Aug 2023 16:25:46 +0200 Subject: [PATCH] Update large link underline thickness --- src/internal/styles/links.scss | 2 ++ src/link/constants.scss | 1 + 2 files changed, 3 insertions(+) diff --git a/src/internal/styles/links.scss b/src/internal/styles/links.scss index 24ef4a5bfc..bf2021892d 100644 --- a/src/internal/styles/links.scss +++ b/src/internal/styles/links.scss @@ -19,6 +19,7 @@ text-decoration: map.get($variant, 'decoration'); /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ text-decoration-color: map.get($variant, 'decoration-color'); + text-decoration-thickness: map.get($variant, 'decoration-thickness'); @include styles.with-motion { transition-property: color, text-decoration; @@ -44,6 +45,7 @@ text-decoration: underline; /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ text-decoration-color: map.get($variant, 'decoration-color-hover'); + text-decoration-thickness: map.get($variant, 'decoration-thickness'); } } diff --git a/src/link/constants.scss b/src/link/constants.scss index dcf5443d06..8bbd91e984 100644 --- a/src/link/constants.scss +++ b/src/link/constants.scss @@ -46,6 +46,7 @@ $link-variants: ( 'decoration': underline, 'decoration-color': currentColor, 'decoration-color-hover': currentColor, + 'decoration-thickness': 0.3rem, ), 'top-navigation': ( 'text-color-default': awsui.$color-text-interactive-default,