From 4b91139df0c01c5c6ad85859535e3790933bced2 Mon Sep 17 00:00:00 2001 From: Elizabet Oliveira Date: Fri, 30 Sep 2022 17:25:39 +0100 Subject: [PATCH] [EuiText] Set default color to `inherit` (#6267) * [EuiText] Set default color to `inherit` * Adding CL * Fix typo * Exclude `inherit` from CSSProperties['color'] * Revert `color` type * Reverting line changes --- src/components/text/text.tsx | 1 + upcoming_changelogs/6267.md | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 upcoming_changelogs/6267.md diff --git a/src/components/text/text.tsx b/src/components/text/text.tsx index cc644e251c1..2e856e851b5 100644 --- a/src/components/text/text.tsx +++ b/src/components/text/text.tsx @@ -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; diff --git a/upcoming_changelogs/6267.md b/upcoming_changelogs/6267.md new file mode 100644 index 00000000000..6bc9ebd4252 --- /dev/null +++ b/upcoming_changelogs/6267.md @@ -0,0 +1,3 @@ +**Bug fixes** + +- Fixed `EuiTextProps` to show the `color` type option `inherit` as default