Skip to content

Commit

Permalink
fix(style): applied styles to the links and icon-btns in the Composib…
Browse files Browse the repository at this point in the history
…le Footer for HCM (#4333)
  • Loading branch information
alionazherdetska authored Dec 19, 2024
1 parent 5326785 commit 7508c15
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-schools-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Added styles for text links and icon-buttons for Composible Footer in HCM.
19 changes: 19 additions & 0 deletions packages/styles/src/components/globals/post-footer.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@use '../../variables/color';
@use '../../mixins/media';
@use '../../mixins/list';
@use '../../mixins/utilities';

post-footer {
// mobile
Expand Down Expand Up @@ -37,6 +38,24 @@ post-footer {
&:not(.btn-icon, .app-store-badge) {
display: block;
text-decoration: none;

&:hover {
@include utilities.high-contrast-mode() {
text-decoration: underline;
}
}
}

&.btn-icon {
@include utilities.high-contrast-mode() {
color: CanvasText !important;
}

&:hover {
@include utilities.high-contrast-mode() {
color: LinkText !important;
}
}
}
}

Expand Down

0 comments on commit 7508c15

Please sign in to comment.