Skip to content

Commit

Permalink
Fix color contrast function (#1158)
Browse files Browse the repository at this point in the history
* fix color contrast function

* changelog
  • Loading branch information
snide authored Aug 30, 2018
1 parent df4a43c commit 0554fcb
Show file tree
Hide file tree
Showing 2 changed files with 4 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)

No public interface changes since `3.8.0`.
**Bug fixes**

- Fixed `makeHighContrastColor` sass mixin to properly output an accessible color contrast. ([#1158](https://github.com/elastic/eui/pull/1158))

## [`3.8.0`](https://github.com/elastic/eui/tree/v3.8.0)

Expand Down
2 changes: 1 addition & 1 deletion src/global_styling/functions/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

@while ($contrast < 4.5) {
$highContrastTextColor: shadeOrTint($highContrastTextColor, 5%, 5%);
$contrast: contrastRatio($highContrastTextColor, $euiColorEmptyShade);
$contrast: contrastRatio($highContrastTextColor, $background);
}

@return $highContrastTextColor;
Expand Down

0 comments on commit 0554fcb

Please sign in to comment.