mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Fix wrapping bug (#30345)
This commit is contained in:
parent
0388ee03d9
commit
c51e9fa4ee
@ -500,8 +500,11 @@ fieldset {
|
|||||||
border: 0; // 2
|
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.
|
// 2. Correct the text wrapping in Edge.
|
||||||
|
// 3. Fix wrapping bug.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/29712
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
float: left; // 1
|
float: left; // 1
|
||||||
@ -512,6 +515,10 @@ legend {
|
|||||||
font-weight: $legend-font-weight;
|
font-weight: $legend-font-weight;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
white-space: normal; // 2
|
white-space: normal; // 2
|
||||||
|
|
||||||
|
+ * {
|
||||||
|
clear: left; // 3
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix height of inputs with a type of datetime-local, date, month, week, or time
|
// Fix height of inputs with a type of datetime-local, date, month, week, or time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user