Skip to content

Commit

Permalink
[Firefox] Remove background-color from transition property list of …
Browse files Browse the repository at this point in the history
…form control mixin (#1927)
  • Loading branch information
cchaos authored May 7, 2019
1 parent d332537 commit 3289ac1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `10.4.0`
**Bug fixes**

- Fixed Firefox flash of unstyled select dropdown ([#1927](https://github.com/elastic/eui/pull/1927))

## [`10.4.0`](https://github.com/elastic/eui/tree/v10.4.0)

Expand Down
11 changes: 9 additions & 2 deletions src/components/form/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,16 @@

transition:
box-shadow $euiAnimSpeedFast ease-in,
background-color $euiAnimSpeedFast ease-in,
background-image $euiAnimSpeedFast ease-in,
background-size $euiAnimSpeedFast ease-in;
background-size $euiAnimSpeedFast ease-in,
background-color $euiAnimSpeedFast ease-in;

// Fixes bug in Firefox where adding a transition to the background-color
// caused a flash of differently styled dropdown.
@supports (-moz-appearance: none) { // sass-lint:disable-line no-vendor-prefixes
// List *must* be in the same order as the above.
transition-property: box-shadow, background-image, background-size;
}
}

@mixin euiFormControlFocusStyle($borderOnly: false) {
Expand Down

0 comments on commit 3289ac1

Please sign in to comment.