diff --git a/public/lib/form/templates/element-choicedropdown.mustache b/public/lib/form/templates/element-choicedropdown.mustache index 999e69db435..876c3181cbd 100644 --- a/public/lib/form/templates/element-choicedropdown.mustache +++ b/public/lib/form/templates/element-choicedropdown.mustache @@ -121,7 +121,7 @@ {{#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}} diff --git a/public/theme/boost/scss/moodle/forms.scss b/public/theme/boost/scss/moodle/forms.scss index 2697826b317..86b9870645b 100644 --- a/public/theme/boost/scss/moodle/forms.scss +++ b/public/theme/boost/scss/moodle/forms.scss @@ -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 { diff --git a/public/theme/boost/style/moodle.css b/public/theme/boost/style/moodle.css index c906d9a1b9a..bcb27f50d03 100644 --- a/public/theme/boost/style/moodle.css +++ b/public/theme/boost/style/moodle.css @@ -34952,6 +34952,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%; diff --git a/public/theme/classic/style/moodle.css b/public/theme/classic/style/moodle.css index d271343ecc7..73dd2520658 100644 --- a/public/theme/classic/style/moodle.css +++ b/public/theme/classic/style/moodle.css @@ -34952,6 +34952,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%;