Skip to content

Commit

Permalink
Follow up to twbs#16529 (remove select caret in IE10+)
Browse files Browse the repository at this point in the history
- Update comment as recommended by @cvrebert
- Use `transparent` for `background-color` so we don't need to override that value again in the disabled state.
- Remove disabled changes.

/cc @WonSong
  • Loading branch information
mdo committed Jun 18, 2015
1 parent a89f00e commit df78c89
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ output {
// Placeholder
.placeholder();

// Removes the border and background color around the caret in IE
// Unstyle the caret on `<select>`s in IE10+.
&::-ms-expand {
border: 0;
background-color: @input-bg;
background-color: transparent;
}

// Disabled and read-only inputs
Expand All @@ -145,8 +145,6 @@ output {
// don't honor that edge case; we style them as disabled anyway.
&[disabled],
&[readonly],
&[disabled]::-ms-expand,
&[readonly]::-ms-expand,
fieldset[disabled] & {
background-color: @input-bg-disabled;
opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
Expand Down

0 comments on commit df78c89

Please sign in to comment.