Merge pull request #8035 from colinux/fix-safari
style: fix old webkits radio & checkbox appearance
This commit is contained in:
commit
0812caeb32
3 changed files with 10 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
||||||
color: $black;
|
color: $black;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
|
background-image: none; // Remove DSFR underline
|
||||||
|
|
||||||
&:hover:not(:disabled) {
|
&:hover:not(:disabled) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -13,16 +13,23 @@ select {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fix firefox < 80 not supporting "appearance: auto" on inputs
|
// Fix firefox < 80, Safari < 15.4, Chrome < 83 not supporting "appearance: auto" on inputs
|
||||||
|
// This rule was set by DSFR for DSFR design, but broke our legacy forms.
|
||||||
// scss-lint:disable DuplicateProperty
|
// scss-lint:disable DuplicateProperty
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
-moz-appearance: checkbox;
|
-moz-appearance: checkbox;
|
||||||
-moz-appearance: auto;
|
-moz-appearance: auto;
|
||||||
|
|
||||||
|
-webkit-appearance: checkbox;
|
||||||
|
-webkit-appearance: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="radio"] {
|
input[type="radio"] {
|
||||||
-moz-appearance: radio;
|
-moz-appearance: radio;
|
||||||
-moz-appearance: auto;
|
-moz-appearance: auto;
|
||||||
|
|
||||||
|
-webkit-appearance: radio;
|
||||||
|
-webkit-appearance: auto;
|
||||||
}
|
}
|
||||||
// scss-lint:enable DuplicateProperty
|
// scss-lint:enable DuplicateProperty
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
- if profile == 'usager' && !dossier.read_only?
|
- if profile == 'usager' && !dossier.read_only?
|
||||||
.flex.row-reverse
|
.flex.row-reverse
|
||||||
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'button'
|
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'fr-btn fr-btn--tertiary'
|
||||||
|
|
||||||
.tab-title= t('views.shared.dossiers.demande.form')
|
.tab-title= t('views.shared.dossiers.demande.form')
|
||||||
- champs = dossier.champs_public.includes(:type_de_champ)
|
- champs = dossier.champs_public.includes(:type_de_champ)
|
||||||
|
|
Loading…
Add table
Reference in a new issue