Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
d239fbb5
Commit
d239fbb5
authored
8 years ago
by
Patrick H. Lauke
Browse files
Options
Download
Email Patches
Plain Diff
Suppress IE/Edge additional white/blue colors for focused <select>
parent
47b97682
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scss/_custom-forms.scss
+10
-0
scss/_custom-forms.scss
scss/_forms.scss
+10
-0
scss/_forms.scss
with
20 additions
and
0 deletions
+20
-0
scss/_custom-forms.scss
+
10
-
0
View file @
d239fbb5
...
...
@@ -159,6 +159,16 @@
border-color
:
$custom-select-focus-border-color
;
outline
:
none
;
@include
box-shadow
(
$custom-select-focus-box-shadow
);
&
::-ms-value
{
// For visual consistency with other platforms/browsers,
// supress the default white text on blue background highlight given to
// the selected option text when the (still closed) <select> receives focus
// in IE and (under certain conditions) Edge.
// See https://github.com/twbs/bootstrap/issues/19398.
color
:
$input-color
;
background-color
:
$input-bg
;
}
}
// Hides the default caret in IE11
...
...
This diff is collapsed.
Click to expand it.
scss/_forms.scss
+
10
-
0
View file @
d239fbb5
...
...
@@ -60,6 +60,16 @@ select.form-control {
&
:not
([
size
])
:not
([
multiple
])
{
height
:
$input-height
;
}
&
:focus::-ms-value
{
// Suppress the nested default white text on blue background highlight given to
// the selected option text when the (still closed) <select> receives focus
// in IE and (under certain conditions) Edge, as it looks bad and cannot be made to
// match the appearance of the native widget.
// See https://github.com/twbs/bootstrap/issues/19398.
color
:
$input-color
;
background-color
:
$input-bg
;
}
}
// Make file inputs better match text inputs by forcing them to new lines.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment