Skip to content

Commit

Permalink
Fix wrapping bug (#30345)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored Mar 21, 2020
1 parent 0388ee0 commit c51e9fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c51e9fa

Please sign in to comment.