Skip to content

Commit

Permalink
fix(icon): add media query style for WHCM (#689)
Browse files Browse the repository at this point in the history
* fix(icon): add media query style for Windows High Contrast Mode

* chore: add changeset
  • Loading branch information
sirrah-tam committed Feb 22, 2024
1 parent 2dbcf46 commit 99879a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-seas-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ithaka/pharos': minor
---

Added media query for icons to appear on Windows High Contrast Mode
7 changes: 7 additions & 0 deletions packages/pharos/src/components/icon/pharos-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@
.icon {
display: block;
}

@media screen and (forced-colors: active) {
.icon {
fill: currentcolor;
stroke: currentcolor;
}
}

0 comments on commit 99879a1

Please sign in to comment.