Skip to content

Commit

Permalink
🆙 📦 Updates from bootstrap reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfahan committed Apr 23, 2020
1 parent 66db694 commit a7bdca7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
1 change: 1 addition & 0 deletions src/components/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@extend %controls-active;
@extend %controls-focus;

appearance: none;
width: 100%;
border-color: $input-bordercolor;
color: $controls-color;
Expand Down
48 changes: 26 additions & 22 deletions src/generics/_bugs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ table {
}

th {
text-align: inherit; // Matches default `<td>` alignment by inheriting from the `<body>`, or the closest parent with a set `text-align`
text-align: inherit; // Matches default `<td>` alignment by inheriting `text-align`
text-align: -webkit-match-parent; // Fix alignment for Safari
}

//
Expand All @@ -168,7 +169,7 @@ label {
}

// Remove the default `border-radius` that macOS Chrome adds
// Details at https://github.com/twbs/bootstrap/issues/24093
// See https://github.com/twbs/bootstrap/issues/24093
button {
border-radius: 0;
}
Expand Down Expand Up @@ -203,7 +204,7 @@ select {
}

// Remove the inheritance of word-wrap in Safari
// Details at https://github.com/twbs/bootstrap/issues/24990
// See https://github.com/twbs/bootstrap/issues/24990
select {
word-wrap: normal;
}
Expand Down Expand Up @@ -231,21 +232,9 @@ input[type="checkbox"] {
@extend %padding-0; // Remove the padding in IE 10-
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
// Remove the default appearance of temporal inputs to avoid a Mobile Safari
// bug where setting a custom line-height prevents text from being vertically
// centered within the input
// See https://bugs.webkit.org/show_bug.cgi?id=139848
// and https://github.com/twbs/bootstrap/issues/11266
@extend %-webkitappearance-textfield;
}

// Remove the dropdown arrow in Chrome from inputs built with datalists.
//
// Source: https://stackoverflow.com/a/54997118
// See https://stackoverflow.com/a/54997118

[list]::-webkit-calendar-picker-indicator {
display: none;
Expand All @@ -270,11 +259,17 @@ fieldset {
}

legend {
@extend %display-block;
@extend %padding-0; // Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
float: left; // The legend will behave like a block element. This way the border of a fieldset wraps around the legend if present.
width: 100%;
height: auto;
white-space: normal; // Correct the text wrapping in IE and Edge.
@extend %color-inherit; // Correct the color inheritance from `fieldset` elements in IE
white-space: normal; // Correct the text wrapping in Edge and IE
@extend %padding-0;
@extend %lineheight-inherit;

+ * {
clear: left; // Fix wrapping bug. See https://github.com/twbs/bootstrap/issues/29712
}
}

progress,
Expand All @@ -293,9 +288,18 @@ progress {

// Fix height of inputs with a type of datetime-local, date, month, week, or time
// See https://github.com/twbs/bootstrap/issues/18842
::-webkit-datetime-edit {
overflow: visible;
line-height: 0;
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
@extend %padding-0;
}

::-webkit-inner-spin-button {
height: auto;
}

[type="search"] {
Expand Down

0 comments on commit a7bdca7

Please sign in to comment.