Skip to content

Commit

Permalink
Add responsive scaling to Icon component
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-b-rose committed Jan 28, 2024
1 parent ba9981c commit 8d8a439
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/chilly-dogs-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/polaris-icons': minor
'@shopify/polaris': minor
---

Added responsive scaling to icons used with the `Icon` component
7 changes: 7 additions & 0 deletions polaris-react/src/components/Icon/Icon.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@

.Icon svg {
fill: currentColor;
height: 20px;
width: 20px;

@media (--p-breakpoints-md-up) {
height: 16px;
width: 16px;
}
}

.toneInherit svg {
Expand Down

0 comments on commit 8d8a439

Please sign in to comment.