From c3573713a0cca26a879c7642089c7b447013f4ec Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 1 Apr 2019 12:35:31 -0600 Subject: [PATCH 1/2] Update ButtonIconColor type to match all available options --- src/components/button/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; From a269c49d6b3357ea658ae7e9ce56f6840f8c81e5 Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 1 Apr 2019 12:37:51 -0600 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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**