Skip to content

Commit

Permalink
Merge pull request #2580 from SpareBank1/shortcut-btn-bugs
Browse files Browse the repository at this point in the history
fix(ffe-buttons): fikser visuelle bugs i shortcut-button
  • Loading branch information
antidecaf authored Feb 26, 2025
2 parents 587574e + be87a15 commit 1be80a9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/ffe-buttons/less/base-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@

.ffe-button__icon {
color: var(--ffe-color-component-button-secondary-foreground-default);
transition: transform var(--ffe-transition-duration) var(--ffe-ease);
}

@media (hover: hover) and (pointer: fine) {
Expand Down Expand Up @@ -208,8 +209,19 @@
}
}

&:focus,
&:visited {
color: var(--ffe-color-component-button-secondary-foreground-default);
background-color: var(
--ffe-color-component-button-secondary-fill-hover
);
}

&:hover,
&:focus {
transform: translateX(12px);
.ffe-button__icon {
transform: translateX(4px);
}
}
}

Expand Down

0 comments on commit 1be80a9

Please sign in to comment.