From b8885140a4af949d194af42133b3560a71f7981e Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 7 Sep 2022 19:00:56 +0200 Subject: [PATCH] fix(dsfr): checkbox/radio visibility on old firefox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Firefox < 80 ne supporte pas `appearance: auto` injecté par le DSFR, ce qui rend les checkbox & radio transparentes (invisibles). --- app/assets/stylesheets/dsfr.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/assets/stylesheets/dsfr.scss b/app/assets/stylesheets/dsfr.scss index 59d7d398c..7788cd923 100644 --- a/app/assets/stylesheets/dsfr.scss +++ b/app/assets/stylesheets/dsfr.scss @@ -15,3 +15,16 @@ select { .button.primary { font-weight: bold; } + +// fix firefox < 80 not supporting "appearance: auto" on inputs +// scss-lint:disable DuplicateProperty +input[type="checkbox"] { + -moz-appearance: checkbox; + -moz-appearance: auto; +} + +input[type="radio"] { + -moz-appearance: radio; + -moz-appearance: auto; +} +// scss-lint:enable DuplicateProperty