Skip to content

Commit

Permalink
feat(link-react): convert icons to pine
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflips committed May 29, 2024
1 parent 944c8ca commit 73e0bcf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion packages/sage-assets/lib/stylesheets/components/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ $-link-base-styles: (
position: relative;
text-decoration: none;

&::before {
&::before,
pds-icon {
@include sage-icon-base(question-circle, lg, pine);

color: sage-color(charcoal, 100);
Expand All @@ -179,6 +180,10 @@ $-link-base-styles: (
&:focus {
outline: 0;

pds-icon {
color: sage-color(charcoal, 300);
}

&::before {
color: sage-color(charcoal, 300);
}
Expand Down
1 change: 1 addition & 0 deletions packages/sage-react/lib/HelpLink/HelpLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const HelpLink = ({
tag={linkTag}
{...rest}
>
<pds-icon name="question-circle" size="20px" />
{!labelIsVisible ? (
<span className="visually-hidden">
{children}
Expand Down
4 changes: 2 additions & 2 deletions packages/sage-react/lib/Link/Link.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Link = ({
{...rest}
>
{icon && (
<pds-icon name={icon} class="sage-link__icon"></pds-icon>
<pds-icon name={icon} class="sage-link__icon" />
)}
{truncate ? (
<span className="t-sage--truncate">
Expand All @@ -62,7 +62,7 @@ export const Link = ({
{...rest}
>
{icon && (
<pds-icon name={icon} class="sage-link__icon"></pds-icon>
<pds-icon name={icon} class="sage-link__icon" />
)}
{truncate ? (
<span className="t-sage--truncate">
Expand Down

0 comments on commit 73e0bcf

Please sign in to comment.