From cacbdc680ecdfee5f0c7fbb876ad15188eaf697d Mon Sep 17 00:00:00 2001 From: "Patrick (Casus Belli)" Date: Thu, 14 Nov 2024 11:12:33 +0100 Subject: [PATCH] Fix left alignment of floating labels with `.form-select` size variants (#41013) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Patrick Kroog Co-authored-by: Christian Oliff Co-authored-by: Julien Déramond Co-authored-by: Louis-Maxime Piton --- js/tests/visual/floating-label.html | 56 +++++++++++++++++++++++++++++ scss/forms/_floating-labels.scss | 1 + 2 files changed, 57 insertions(+) diff --git a/js/tests/visual/floating-label.html b/js/tests/visual/floating-label.html index f78442eff1..debecd7ebd 100644 --- a/js/tests/visual/floating-label.html +++ b/js/tests/visual/floating-label.html @@ -167,6 +167,34 @@ + +
+ + +
+
+ + +
+
+ + +
@@ -329,6 +357,34 @@
+ +
+ + +
+
+ + +
+
+ + +
diff --git a/scss/forms/_floating-labels.scss b/scss/forms/_floating-labels.scss index b366505881..38df115561 100644 --- a/scss/forms/_floating-labels.scss +++ b/scss/forms/_floating-labels.scss @@ -51,6 +51,7 @@ > .form-select { padding-top: $form-floating-input-padding-t; padding-bottom: $form-floating-input-padding-b; + padding-left: $form-floating-padding-x; } > .form-control:focus,