Skip to content

Commit

Permalink
🐛 fix(password): bug icône [DS-3379] (#648)
Browse files Browse the repository at this point in the history
- conditionne l'ajout de la classe utile `fr-icon` à l'utilisation d'une string en paramètre `icon`
  • Loading branch information
zellerbaptiste authored Jul 4, 2023
1 parent 4395384 commit f45dbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/input/input-base/template/ejs/input.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if (input.spellcheck === true || input.spellcheck === false) attributes.spellche
const inputWrapClass = [];
if (input.button || input.icon) inputWrapClass.push(`${prefix}-input-wrap`);
if (input.icon) inputWrapClass.push(`${prefix}-icon-${input.icon === true ? '' : input.icon}`);
if (input.icon && typeof(input.icon) === 'string') inputWrapClass.push(`${prefix}-icon-${input.icon}`);
if (input.addon) inputWrapClass.push(`${prefix}-input-wrap--addon`);
if (input.action) inputWrapClass.push(`${prefix}-input-wrap--action`);
%>
Expand Down

0 comments on commit f45dbdb

Please sign in to comment.