Skip to content

Commit

Permalink
fix(back-to-top): icon and label positioning (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahiss authored Jun 9, 2022
1 parent bc8f505 commit 671f7f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scss/_back-to-top.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
position: sticky;
top: $back-to-top-link-offset-top;
pointer-events: all;
@include button-icon($back-to-top-icon, $size: $back-to-top-icon-width $back-to-top-icon-height, $pseudo: "after");
@include button-icon($back-to-top-icon, $size: $back-to-top-icon-width $back-to-top-icon-height, $pseudo: "after", $position: calc(50% - 1px));

&::after {
transform: rotate(.25turn) #{"/* rtl:ignore */"};
Expand All @@ -46,7 +46,6 @@
white-space: nowrap;
content: attr(data-#{$boosted-prefix}label);
background-color: $back-to-top-title-bg-color;
transform: translateY(1px);
}

&[data-#{$boosted-prefix}label]:hover::before,
Expand Down

0 comments on commit 671f7f2

Please sign in to comment.