diff --git a/CHANGELOG.md b/CHANGELOG.md index 36964cae541..ef3aa15c358 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Adjusted the shadow in `EuiComment` ([#4321](https://github.com/elastic/eui/pull/4321)) +- Added `success` and `warning` colors to `EuiButtonEmpty` ([#4325](https://github.com/elastic/eui/pull/4325)) **Bug fixes** @@ -10,6 +11,7 @@ **Theme: Amsterdam** - Removed the shadow in `EuiComment` ([#4321](https://github.com/elastic/eui/pull/4321)) +- Reduced font size for `xs` size in `EuiButtonEmpty` ([#4325](https://github.com/elastic/eui/pull/4325)) ## [`30.5.1`](https://github.com/elastic/eui/tree/v30.5.1) diff --git a/src-docs/src/views/button/button_empty.js b/src-docs/src/views/button/button_empty.js index f340a0c8822..16c1a7eb93b 100644 --- a/src-docs/src/views/button/button_empty.js +++ b/src-docs/src/views/button/button_empty.js @@ -6,36 +6,52 @@ import { EuiFlexItem, } from '../../../../src/components/'; +const buttons = ['primary', 'success', 'warning', 'danger', 'text', 'disabled']; + export default () => (
- - - {}}>Primary - - - - {}}> - small - - - - - {}}> - extra small - - - + {buttons.map((value) => ( + <> + + + {}}> + {value} + + + + + {}}> + small + + + + + {}}> + extra small + + + + + ))} {}} iconType="arrowDown"> - Primary - - - - - {}} iconType="arrowDown"> - small + Icon left @@ -44,155 +60,7 @@ export default () => ( onClick={() => {}} iconType="arrowDown" iconSide="right"> - Primary - - - - - {}} - iconType="arrowDown" - iconSide="right"> - small - - - - - - - {}}> - Danger - - - - - {}}> - small - - - - - {}}> - extra small - - - - - - - {}} iconType="arrowDown"> - Danger - - - - - {}} - iconType="arrowDown"> - small - - - - - {}} - iconType="arrowDown" - iconSide="right"> - Danger - - - - - {}} - iconType="arrowDown" - iconSide="right"> - small - - - - - - - {}}> - Text - - - - - {}}> - small - - - - - {}}> - extra small - - - - - - - {}} iconType="arrowDown"> - Text - - - - - {}} - iconType="arrowDown"> - small - - - - - {}} - iconType="arrowDown" - iconSide="right"> - Text - - - - - {}} - iconType="arrowDown" - iconSide="right"> - small - - - - - - - {}} isDisabled> - Disabled - - - - - {}} isDisabled> - small - - - - - {}} isDisabled> - extra small + Icon right @@ -210,51 +78,5 @@ export default () => ( - - - - {}} - iconType="arrowDown" - isDisabled> - Disabled - - - - - {}} - iconType="arrowDown" - isDisabled> - small - - - - - {}} - iconType="arrowDown" - iconSide="right" - isDisabled> - Disabled - - - - - {}} - iconType="arrowDown" - iconSide="right" - isDisabled> - small - - -
); diff --git a/src/components/button/button_empty/__snapshots__/button_empty.test.tsx.snap b/src/components/button/button_empty/__snapshots__/button_empty.test.tsx.snap index 6331e4f1a20..75b3d5d0257 100644 --- a/src/components/button/button_empty/__snapshots__/button_empty.test.tsx.snap +++ b/src/components/button/button_empty/__snapshots__/button_empty.test.tsx.snap @@ -64,6 +64,21 @@ exports[`EuiButtonEmpty props color primary is rendered 1`] = ` `; +exports[`EuiButtonEmpty props color success is rendered 1`] = ` + +`; + exports[`EuiButtonEmpty props color text is rendered 1`] = ` +`; + exports[`EuiButtonEmpty props contentProps is rendered 1`] = `