Skip to content

Commit

Permalink
[EuiText] Set default color to inherit (elastic#6267)
Browse files Browse the repository at this point in the history
* [EuiText] Set default color to `inherit`

* Adding CL

* Fix typo

* Exclude `inherit` from CSSProperties['color']

* Revert `color` type

* Reverting line changes
  • Loading branch information
elizabetdev authored Sep 30, 2022
1 parent cd59d7b commit 4b91139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/text/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export type EuiTextProps = CommonProps &
size?: TextSize;
/**
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
* @default inherit
*/
color?: TextColor | CSSProperties['color'];
grow?: boolean;
Expand Down
3 changes: 3 additions & 0 deletions upcoming_changelogs/6267.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiTextProps` to show the `color` type option `inherit` as default

0 comments on commit 4b91139

Please sign in to comment.