MDL-86196 forms: style choice dropdown/list element as form control.

We then get consistent borders, text, colour, etc as other elements
(and carrots).

Co-authored-by: Mikel Martín <[email protected]>
This commit is contained in:
Paul Holden
2025-08-08 08:58:19 +01:00
co-authored by Mikel Martín
parent 621c6e1048
commit d004beb5cd
4 changed files with 14 additions and 1 deletions
@@ -121,7 +121,7 @@
</select>
{{#element.dropdown}}
{{< core/local/dropdown/status}}
{{$ buttonclasses }} btn btn-outline-secondary dropdown-toggle {{/ buttonclasses }}
{{$ buttonclasses }} form-select dropdown-toggle {{/ buttonclasses }}
{{/ core/local/dropdown/status}}
{{/element.dropdown}}
{{/element.frozen}}
@@ -48,6 +48,13 @@
.form-select {
width: auto;
max-width: 100%;
// Remove the default caret from the dropdown toggle button.
// This is needed to avoid the double caret when using alongside form-select.
&.dropdown-toggle {
&::after {
content: none;
}
}
}
#jump-to-activity.form-select {
+3
View File
@@ -34892,6 +34892,9 @@ body.path-question-type .mform fieldset.hidden {
width: auto;
max-width: 100%;
}
.form-select.dropdown-toggle::after {
content: none;
}
#jump-to-activity.form-select {
width: 100%;
+3
View File
@@ -34892,6 +34892,9 @@ body.path-question-type .mform fieldset.hidden {
width: auto;
max-width: 100%;
}
.form-select.dropdown-toggle::after {
content: none;
}
#jump-to-activity.form-select {
width: 100%;