Skip to content

Commit

Permalink
Get rid of terrible IE highlight when select is focused
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Jun 28, 2018
1 parent 66647f0 commit 2eea143
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/components/form/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
@function euiFormControlGradient($color: $euiColorPrimary) {
@return linear-gradient(to top,
$color,
$color ($euiSizeXS / 2),
transparent ($euiSizeXS / 2),
$color 2px,
transparent 2px,
transparent 100%
);
}

/*
/**
* 1. Ensure the icon padding remains when in readOnly mode
*/

Expand Down Expand Up @@ -107,8 +107,9 @@
}

/**
* 1. Override invalid state with focus state.
* 2. Override invalid state with focus state.
*/

@mixin euiFormControlStyle($borderOnly: false, $includeStates: true) {
@include euiFormControlSize;
@include euiFormControlDefaultShadow($borderOnly);
Expand All @@ -132,11 +133,11 @@
}

@if ($includeStates) {
&:invalid { /* 1 */
&:invalid { /* 2 */
@include euiFormControlInvalidStyle;
}

&:focus { /* 1 */
&:focus { /* 2 */
@include euiFormControlFocusStyle($borderOnly);
}

Expand All @@ -151,9 +152,7 @@

}

//
// Custom styles and states for checkboxes and radios
//

@mixin euiCustomControl($type: null, $size: $euiSize){

Expand Down
5 changes: 5 additions & 0 deletions src/components/form/select/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@
&::-ms-expand {
display: none;
}

&:focus::-ms-value {
color: $euiTextColor;
background: transparent;
}
}

0 comments on commit 2eea143

Please sign in to comment.