Skip to content

Commit

Permalink
fix(styles): ngb-pagination HCM
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq committed Dec 6, 2023
1 parent f938db6 commit 0b9b927
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-donkeys-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed active color and chevron display of the ngb-pagination component in High Contrast Mode.
16 changes: 16 additions & 0 deletions packages/styles/src/components/pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,21 @@
&.active {
color: pagination.$pagination-active-color;
}

@include utilities.high-contrast-mode() {
&.active > .page-link {
background-color: Highlight;
}


&:first-child,
&:last-child {
.page-link > span {
background-color: LinkText;
color: transparent;
forced-color-adjust: none;
}
}
}
}
}

0 comments on commit 0b9b927

Please sign in to comment.