Skip to content

Commit

Permalink
Merge branch 'main' into 4202-components-fixing-switch-on-mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
schaertim authored Dec 19, 2024
2 parents d6f38f1 + 7508c15 commit f6ec0a3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
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.
5 changes: 5 additions & 0 deletions .changeset/wicked-scissors-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-components': patch
---

Removed focus from collapsible when in collapsed state.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class PostCollapsible {

render() {
return (
<Host data-version={version}>
<Host data-version={version} tabindex={this.collapsed ? -1 : undefined}>
<slot />
</Host>
);
Expand Down
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 f6ec0a3

Please sign in to comment.