Skip to content

Commit

Permalink
Get around chrome issue with letter spacing and SVGs with RTL languag…
Browse files Browse the repository at this point in the history
…es (#1960)
  • Loading branch information
snide authored May 23, 2019
1 parent 5c3ed7e commit 9f98067
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
- Updated `EuiIcon` to use Slack's updated branding ([#1954](https://github.com/elastic/eui/pull/1954))
- Updated `compile-icons` script to format icon components with Prettier ([#1955](https://github.com/elastic/eui/pull/1955))

**Bug fixes**

- Addressed a chrome issue where negative letter-spacing can reverse RTL text in SVGs ([#1960](https://github.com/elastic/eui/pull/1960))

## [`11.1.0`](https://github.com/elastic/eui/tree/v11.1.0)

- Converted `pretty_interval` to TS ([#1920](https://github.com/elastic/eui/pull/1920))
Expand Down
5 changes: 5 additions & 0 deletions src/global_styling/reset/_hacks.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Chrome has an issue around RTL languages in SVGs when letter-spacing is negative
// https://bugs.chromium.org/p/chromium/issues/detail?id=966480
svg text {
letter-spacing: normal !important; // sass-lint:disable-line no-important
}
1 change: 1 addition & 0 deletions src/global_styling/reset/_index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import 'reset';
@import 'hacks';
@import 'scrollbar';
2 changes: 1 addition & 1 deletion src/global_styling/reset/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ hr {

fieldset {
min-inline-size: auto;
}
}

0 comments on commit 9f98067

Please sign in to comment.