From 50a6a16c330a85cecbf857dabf2189ecc7eb2285 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 17 Sep 2020 12:04:18 -0700 Subject: [PATCH] Streamline and bulletproof some things - Apply some optimizations from code review - Removed unecessary properties from the label - Add some comments for what properties are required - Move from fixed height for labels to height 100% so we can support textareas - Improve docs a little bit, add ToC --- scss/forms/_floating-labels.scss | 12 ++++---- .../content/docs/5.0/forms/floating-labels.md | 29 ++++++++++++++++--- 2 files changed, 30 insertions(+), 11 deletions(-) diff --git a/scss/forms/_floating-labels.scss b/scss/forms/_floating-labels.scss index 7660ec52b3b6..d95b3b9ff915 100644 --- a/scss/forms/_floating-labels.scss +++ b/scss/forms/_floating-labels.scss @@ -3,7 +3,6 @@ .form-floating { position: relative; - > label, > .form-control, > .form-select { height: $form-floating-height; @@ -14,13 +13,10 @@ position: absolute; top: 0; left: 0; - display: block; - width: 100%; - margin-bottom: 0; // Override default `