Skip to content

Commit

Permalink
tech(pix-return-to): update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
xav-car committed Oct 4, 2024
1 parent ad0d7de commit 26ee671
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addon/components/pix-return-to.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
...attributes
>
{{#if (has-block)}}
<span aria-hidden="true" class="pix-return-to__icon"><FaIcon @icon="arrow-left" /></span>
<PixIcon @name="arrowLeft" aria-hidden="true" class="pix-return-to__icon" />
<span class="pix-return-to__text"> {{yield}} </span>
{{else}}
<span title="Flèche de retour" class="pix-return-to__icon"><FaIcon @icon="arrow-left" /></span>
<PixIcon class="pix-return-to__icon" arial-label={{@arrowLabel}} @name="arrowLeft" />
{{/if}}
</LinkTo>
5 changes: 3 additions & 2 deletions addon/styles/_pix-return-to.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

&__icon {
position: relative;
width: 2.3rem;
height: 2.3rem;
padding: var(--pix-spacing-1x) var(--pix-spacing-2x);
font-size: 1rem;
}

&:focus,
Expand All @@ -29,11 +30,11 @@
&:hover,
&:active {
.pix-return-to__icon {
color: $arrowHoverColor;
background-color: $arrowBgColor;
border-radius: 50%;
outline: 1px solid var(--pix-neutral-0);
outline-offset: -3px;
fill: $arrowHoverColor;
}
}
}
Expand Down

0 comments on commit 26ee671

Please sign in to comment.