From ab4b201fcb3d3d008e05c8a034f0eeb6c8209451 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 23 May 2024 11:38:27 +0200 Subject: [PATCH] fix(toggle): render label in 1 line --- app/assets/stylesheets/dsfr.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/stylesheets/dsfr.scss b/app/assets/stylesheets/dsfr.scss index 89e2e966b..11343be43 100644 --- a/app/assets/stylesheets/dsfr.scss +++ b/app/assets/stylesheets/dsfr.scss @@ -179,3 +179,10 @@ button.fr-tag-bug { border: initial; display: block; // Pour cette valeur spécifique, on récupère celle de .fr-label } + +// Fix toggles having labels on 2 lines +// From upstream https://github.com/GouvernementFR/dsfr/pull/928 +// Remove it when PR is merged (v1.12 ?) +.fr-toggle label[data-fr-unchecked-label][data-fr-checked-label]::before { + word-wrap: normal; +}