Skip to content

Commit

Permalink
style(choice): correct icon alignment (#1957)
Browse files Browse the repository at this point in the history
* style(choice): remove incorrect margin styles

* docs(choice): add additional example without subtext
  • Loading branch information
pixelflips authored Aug 22, 2024
1 parent a947669 commit d975ff7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 9 additions & 0 deletions docs/app/views/examples/components/choice/_preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ long_description = "Description with longer text to cause wrapping and make the

<h3 class="t-sage-heading-6">Icon Variation</h3>
<p>Select any icon to appear to the left of the text.</p>
<%= sage_component SageChoice, {
target: "example",
text: "Option 1",
type: "icon",
icon: "video-on",
}
%>

<p>With additional subtext.</p>
<%= sage_component SageChoice, {
target: "example",
text: "Option 1",
Expand Down
4 changes: 0 additions & 4 deletions packages/sage-assets/lib/stylesheets/components/_choice.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ $-choice-radio-color-checked-inner: map-get($sage-radio-colors, checked-inner);
transition: color map-get($sage-transitions, default);
}

pds-icon {
margin-top: var(--icon-top-offset);
}

&.sage-choice--vertical-align-icon-start::#{$-choice-el-icon} {
align-self: start;
margin-top: var(--icon-top-offset);
Expand Down

0 comments on commit d975ff7

Please sign in to comment.