From be61ffb6fe500cdbfa83b9cd131b8e72779f23c2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 4 Oct 2023 18:17:35 +0200 Subject: refactor(components): rewrite BackToTop component * replace `link` prop with `anchor` prop * add a `label` prop to let consumer handle the accessible name --- src/components/templates/layout/layout.module.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/templates/layout/layout.module.scss') diff --git a/src/components/templates/layout/layout.module.scss b/src/components/templates/layout/layout.module.scss index d86340f..223fb93 100644 --- a/src/components/templates/layout/layout.module.scss +++ b/src/components/templates/layout/layout.module.scss @@ -30,7 +30,7 @@ .back-to-top { &--hidden { opacity: 0; - transform: translateY(calc(var(--button-size) + var(--spacing-md))); + transform: translateY(calc(var(--button-height) + var(--spacing-md))); visibility: hidden; } -- cgit v1.2.3