Skip to content

Commit

Permalink
fix(styles,documentation): Improved rendering of the home page for HCM (
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq authored Feb 20, 2024
1 parent 401ed2d commit 7cfb8c8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/sixty-dots-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Removed transparent background for notification in high-contrast mode.
5 changes: 5 additions & 0 deletions .changeset/thick-dolphins-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-documentation': patch
---

Improved rendering of the home page for high-contrast mode.
5 changes: 5 additions & 0 deletions packages/documentation/src/stories/home.styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use 'sass:map';
@use '@swisspost/design-system-styles/core.scss' as post;
@use '@swisspost/design-system-styles/mixins/utilities';

.bg-fullwidth {
position: relative;
Expand Down Expand Up @@ -48,6 +49,10 @@ $tile-rg-size: 100px;
box-shadow: 0 2px 5px 0 rgba(post.$aubergine-dark, 0.3);
text-decoration: none;

@include utilities.high-contrast-mode() {
border: 2px solid transparent;
}

.tile--title {
display: flex;
justify-content: center;
Expand Down
3 changes: 1 addition & 2 deletions packages/styles/src/mixins/_notification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@

@include utilities-mx.high-contrast-mode {
filter: none !important;
background-color: transparent !important;
border: 2px solid WindowText;
border: 2px solid CanvasText;
}
}

Expand Down

0 comments on commit 7cfb8c8

Please sign in to comment.