Skip to content

Commit

Permalink
Fixed input fields placeholders not vertically centered in Safari (#3809
Browse files Browse the repository at this point in the history
)

* Fixed safari placeholder bug

* Adding CL

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
  • Loading branch information
miukimiu and chandlerprall committed Jul 29, 2020
1 parent 34e187f commit 8f08d64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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)

**Bug fixes**

No public interface changes since `27.3.0`.
- Fixed bug in all input fields placeholders in Safari that weren't vertically centered ([#3809](https://github.com/elastic/eui/pull/3809))

## [`27.3.0`](https://github.com/elastic/eui/tree/v27.3.0)

Expand Down
5 changes: 4 additions & 1 deletion src/global_styling/mixins/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@
@mixin euiFormControlText {
@include euiFont;
font-size: $euiFontSizeS;
line-height: 1em; // fixes text alignment in IE
color: $euiTextColor;

@include internetExplorerOnly {
line-height: 1em; // fixes text alignment in IE
}

// sass-lint:disable-block mixins-before-declarations
@include euiPlaceholderPerBrowser {
color: $euiColorDarkShade;
Expand Down

0 comments on commit 8f08d64

Please sign in to comment.