Skip to content

Commit

Permalink
fix(icon): adjust text alignment variant
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflips committed May 29, 2024
1 parent efe9475 commit 91f274b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/sage-assets/lib/stylesheets/components/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ $-icon-beside-type: (
// various responsive type specs
//
@each $type-spec in $-icon-beside-type {
.sage-icon--adjacent-type-#{$type-spec} {
height: sage-line-height($type-spec);
.sage-icon--adjacent-type-#{$type-spec},
pds-icon {
height: sage-line-height($type-spec) !important;

&::before {
height: sage-line-height($type-spec);
Expand Down
2 changes: 1 addition & 1 deletion packages/sage-react/lib/Icon/Icon.story.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The `adjacentType` property can be used to align an icon next to a heading or pa
<Canvas>
<Story name="Adjacent Type">
<div style={{ display: "flex", gap: "16px" }}>
<Icon adjacentType="h2" icon="pen" />
<Icon adjacentType="h2" icon="pen" size="xl" />
<h2>This is an H2 headline.</h2>
</div>
<div style={{ display: "flex", gap: "16px" }}>
Expand Down

0 comments on commit 91f274b

Please sign in to comment.