]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Textarea support for input groups 25152/head
authorGijs Boddeus <botje_gijs@hotmail.com>
Sun, 31 Dec 2017 14:38:29 +0000 (15:38 +0100)
committerGitHub <noreply@github.com>
Sun, 31 Dec 2017 14:38:29 +0000 (15:38 +0100)
The append and prepend classes vertically aligned items in the center
For textareas this meant the addon would aling vertically instead of stretch and have it's contents vertically aligned
these changes fix that so everything is aligned how it should be

scss/_input-group.scss

index df950fb5cb34899d4ba770b6d03f84926ca0159f..134b62d4e6681d2de15ba05a68381ddb955f372a 100644 (file)
@@ -60,7 +60,6 @@
 .input-group-prepend,
 .input-group-append {
   display: flex;
-  align-items: center;
 
   // Ensure buttons are always above inputs for more visually pleasing borders.
   // This isn't needed for `.input-group-text` since it shares the same border-color
@@ -88,6 +87,8 @@
 // to prepend or append to an input.
 
 .input-group-text {
+  display: flex;
+  align-items: center;
   padding: $input-padding-y $input-padding-x;
   margin-bottom: 0; // Allow use of <label> elements by overriding our default margin-bottom
   font-size: $font-size-base; // Match inputs