From 8c06fe99d70bc3ca8d5fefdc486e2f0ec9a005e0 Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 1 Apr 2019 14:38:22 -0600 Subject: [PATCH] Update ButtonIconColor type to match all available options (#1783) * Update ButtonIconColor type to match all available options * changelog --- CHANGELOG.md | 4 ++++ src/components/button/index.d.ts | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05f6d98af8c..b034fe32096 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ - Converted `EuiFormErrorText` to TS ([#1772](https://github.com/elastic/eui/pull/1772)) +**Bug fixes** + +Update ButtonIconColor type to provide all available options ([#1783](https://github.com/elastic/eui/pull/1783)) + ## [`9.7.1`](https://github.com/elastic/eui/tree/v9.7.1) **Bug fixes** diff --git a/src/components/button/index.d.ts b/src/components/button/index.d.ts index 9f44dec22ce..0eb1673d9dc 100644 --- a/src/components/button/index.d.ts +++ b/src/components/button/index.d.ts @@ -49,11 +49,14 @@ declare module '@elastic/eui' { */ export type ButtonIconColor = - | 'primary' | 'danger' | 'disabled' | 'ghost' - | 'text'; + | 'primary' + | 'subdued' + | 'success' + | 'text' + | 'warning'; export interface EuiButtonIconProps { iconType?: IconType;