diff options
| author | Martijn Cuppens <[email protected]> | 2020-03-21 15:44:08 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-21 16:44:08 +0200 |
| commit | c51e9fa4ee8fe8020decec064803e686eb9e1dde (patch) | |
| tree | c75c28e458b5a65d610f71d2420f49f12a68e9fd /scss/_reboot.scss | |
| parent | 0388ee03d940b81cbeff6a5980079adf6e0b1c26 (diff) | |
| download | bootstrap-c51e9fa4ee8fe8020decec064803e686eb9e1dde.tar.xz bootstrap-c51e9fa4ee8fe8020decec064803e686eb9e1dde.zip | |
Fix wrapping bug (#30345)
Diffstat (limited to 'scss/_reboot.scss')
| -rw-r--r-- | scss/_reboot.scss | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss index b5fc6f101..4a1a16437 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -500,8 +500,11 @@ fieldset { border: 0; // 2 } -// 1. By using `float: left`, the legend will behave like a block element +// 1. By using `float: left`, the legend will behave like a block element. +// This way the border of a fieldset wraps around the legend if present. // 2. Correct the text wrapping in Edge. +// 3. Fix wrapping bug. +// See https://github.com/twbs/bootstrap/issues/29712 legend { float: left; // 1 @@ -512,6 +515,10 @@ legend { font-weight: $legend-font-weight; line-height: inherit; white-space: normal; // 2 + + + * { + clear: left; // 3 + } } // Fix height of inputs with a type of datetime-local, date, month, week, or time |
