Skip to content

Commit

Permalink
fix: 🐛 Enlève le hint si description vide
Browse files Browse the repository at this point in the history
  • Loading branch information
laruiss committed Nov 4, 2021
1 parent 01f0bac commit fb376b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/DsfrSelect/DsfrSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export default {
:for="selectId"
>
{{ label }} {{ required ? '*' : '' }}
<span class="fr-hint-text">{{ description }}</span>
<span
v-if="description"
class="fr-hint-text"
>{{ description }}</span>
</label>

<select
Expand Down
6 changes: 5 additions & 1 deletion src/components/DsfrToggleSwitch/DsfrToggleSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export default defineComponent({
}
.fr-toggle__label::after {
content: ' ';
content: '';
}
.fr-toggle__label::before {
content: '';
}
.after {
Expand Down

0 comments on commit fb376b1

Please sign in to comment.