Skip to content

Commit

Permalink
feat(dropdownitem): convert rails icon to pine
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflips committed May 24, 2024
1 parent 500a282 commit fee340b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ end
<%= key %>="<%= value %>"
<% end if component.attributes&.is_a?(Hash) %>
>
<% if component.icon.present? %>
<pds-icon class="<%= "sage-dropdown__item-control--icon-#{component.icon}"%> <%= SageClassnames::SPACERS::XS_RIGHT %>" name="<%= component.icon %>"></pds-icon>
<% end %>
<% if component.content.present? %>
<%= component.content %>
<% else %>
Expand Down
2 changes: 1 addition & 1 deletion packages/sage-assets/lib/stylesheets/components/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $-icon-beside-type: (
}

.sage-dropdown__item-control--icon-#{$icon-name}::before {
@include sage-icon-base($icon-name);
@include sage-icon-base($icon-name, md, pine);
margin: 0 sage-spacing(xs) 0 0;
}

Expand Down

0 comments on commit fee340b

Please sign in to comment.