Merge pull request #9699 from mfo/US/combobox-full-with-no-matter-screen

amelioration(combobox): ETQ usager, les combobox de DS se comportent comme un `<select>`
This commit is contained in:
mfo 2023-11-13 15:32:06 +00:00 committed by GitHub
commit 79293f9fde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,12 +33,20 @@ trix-editor.fr-input {
margin-top: 0.5rem;
}
@media (max-width: 62em) {
.fr-ds-combobox {
.fr-menu {
.fr-menu__list {
z-index: calc(var(--ground) + 1000);
width: 100%;
.fr-menu__list {
width: 100%;
}
}
}
@media (max-width: 62em) {
.fr-ds-combobox .fr-menu .fr-menu__list {
z-index: calc(var(--ground) + 1000);
background-color: var(--background-default-grey);
--idle: transparent;
--hover: var(--background-overlap-grey-hover);
@ -47,8 +55,7 @@ trix-editor.fr-input {
box-shadow: inset 0 1px 0 0 var(--border-open-blue-france);
}
}
}
}
// 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