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 334bd23
Show file tree
Hide file tree
Showing 2 changed files with 14 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
8 changes: 8 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,14 @@

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

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

.toneInherit svg {
Expand Down

0 comments on commit 334bd23

Please sign in to comment.