Skip to content

Commit

Permalink
feat(pix-ui): use no-shrink on select options icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-Monney committed Feb 13, 2025
1 parent 5757886 commit 1667dec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
14 changes: 12 additions & 2 deletions addon/components/pix-select-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
>

{{#if option.icon}}
<PixIcon role="presentation" @name={{option.icon}} @title={{option.iconTitle}} />
<PixIcon
role="presentation"
@name={{option.icon}}
@title={{option.iconTitle}}
class="pix-icon--no-shrink"
/>
{{/if}}

{{option.label}}
Expand Down Expand Up @@ -84,7 +89,12 @@
{{on-space-action (fn @onChange option)}}
>
{{#if option.icon}}
<PixIcon role="presentation" @name={{option.icon}} @title={{option.iconTitle}} />
<PixIcon
role="presentation"
@name={{option.icon}}
@title={{option.iconTitle}}
class="pix-icon--no-shrink"
/>
{{/if}}

{{option.label}}
Expand Down
3 changes: 2 additions & 1 deletion tests/dummy/app/controllers/select-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default class SelectPage extends Controller {
},
{
value: '3',
label: 'Fraises',
label:
'Fraises, des bonnes fraises, bien rouge. Tout un gros paquet de fraises, mais beaucoup beaucoup',
category: 'rouge',
icon: 'userCircle',
iconTitle: 'titre icone user',
Expand Down

0 comments on commit 1667dec

Please sign in to comment.