From ac4c0b7f020c05aeffa734a5c1dbf0488a402fc7 Mon Sep 17 00:00:00 2001
From: Caroline Horn <549577+cchaos@users.noreply.github.com>
Date: Tue, 7 Aug 2018 11:36:12 -0400
Subject: [PATCH] Allowing more status options for `EuiSteps` (#1088)
---
CHANGELOG.md | 2 +
.../components/guide_section/guide_section.js | 12 +-
src-docs/src/views/steps/status.js | 57 +++++++++-
src-docs/src/views/steps/steps_example.js | 17 ++-
.../switch/__snapshots__/switch.test.js.snap | 11 +-
.../icon/__snapshots__/icon.test.js.snap | 11 +-
src/components/icon/assets/check.svg | 7 +-
.../steps/__snapshots__/step.test.js.snap | 4 +-
.../step_horizontal.test.js.snap | 2 +-
.../__snapshots__/step_number.test.js.snap | 106 ++++++++++++++++++
.../steps/__snapshots__/steps.test.js.snap | 48 ++++----
.../steps_horizontal.test.js.snap | 22 ++--
src/components/steps/_index.scss | 19 +---
src/components/steps/_mixins.scss | 13 +++
src/components/steps/_step_number.scss | 40 +++++++
src/components/steps/_steps.scss | 18 +--
src/components/steps/_steps_horizontal.scss | 20 +---
src/components/steps/_variables.scss | 10 ++
src/components/steps/step.js | 31 ++---
src/components/steps/step_horizontal.js | 29 +++--
src/components/steps/step_number.js | 67 +++++++++++
src/components/steps/step_number.test.js | 46 ++++++++
src/components/steps/steps.test.js | 3 +-
.../global_toast_list.test.js.snap | 11 +-
24 files changed, 438 insertions(+), 168 deletions(-)
create mode 100644 src/components/steps/__snapshots__/step_number.test.js.snap
create mode 100644 src/components/steps/_mixins.scss
create mode 100644 src/components/steps/_step_number.scss
create mode 100644 src/components/steps/_variables.scss
create mode 100644 src/components/steps/step_number.js
create mode 100644 src/components/steps/step_number.test.js
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e04188b8b50..b0ce63a9b25 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
- Added `!default` to border SASS props ([#1079](https://github.com/elastic/eui/pull/1079))
- Added `repositionOnScroll` prop to `EuiPopover` which enables repositioning the popover when the window is scrolled. ([#1064](https://github.com/elastic/eui/pull/1064))
- Allow `_` and `*` characters to be used in `EuiSearchBar` query terms ([#1058](https://github.com/elastic/eui/pull/1058))
+- Added more `status` options for `EuiSteps` ([#1088](https://github.com/elastic/eui/pull/1088))
**Bug fixes**
@@ -13,6 +14,7 @@
- Added `resize-observer-polyfill` as a dependency (was previously a devDependency) ([#1085](https://github.com/elastic/eui/pull/1085))
- Fixed `EuiBasicTable` to inform its parent about a selection change triggered by a different set of `items` ([#1086](https://github.com/elastic/eui/pull/1086))
- Fixed width of `EuiFilterGroup`'s popover ([#1078](https://github.com/elastic/eui/pull/1078))
+- Fixed `EuiStepsHorizontal`'s title wrapping in IE ([#1088](https://github.com/elastic/eui/pull/1088))
## [`3.3.0`](https://github.com/elastic/eui/tree/v3.3.0)
diff --git a/src-docs/src/components/guide_section/guide_section.js b/src-docs/src/components/guide_section/guide_section.js
index 7c6efd3464f..28fc04832e3 100644
--- a/src-docs/src/components/guide_section/guide_section.js
+++ b/src-docs/src/components/guide_section/guide_section.js
@@ -162,24 +162,28 @@ export class GuideSection extends Component {
} = props[propName];
let humanizedName = (
- {propName}
+ {propName}
);
if (required) {
humanizedName = (
- {humanizedName}
- I am a fancy button just waiting to be pushed!
+ We are fancy buttons just waiting to be pushed!
- Steps can optionally include
For use when forms/setup instructions can and should be split into multiple pages.
), - demo:@@ -186,10 +182,10 @@ exports[`EuiSteps renders steps with firstStepNumber 1`] = ` - Step + Step
diff --git a/src/components/steps/__snapshots__/steps_horizontal.test.js.snap b/src/components/steps/__snapshots__/steps_horizontal.test.js.snap index 0676311b40a..960fec12695 100644 --- a/src/components/steps/__snapshots__/steps_horizontal.test.js.snap +++ b/src/components/steps/__snapshots__/steps_horizontal.test.js.snap @@ -21,25 +21,19 @@ exports[`EuiStepsHorizontal is rendered 1`] = ` Step
And finally, do this
+ children:And finally, do this
, + status: 'incomplete', }, ]; diff --git a/src/components/toast/__snapshots__/global_toast_list.test.js.snap b/src/components/toast/__snapshots__/global_toast_list.test.js.snap index 20b88a26cdb..5677671d573 100644 --- a/src/components/toast/__snapshots__/global_toast_list.test.js.snap +++ b/src/components/toast/__snapshots__/global_toast_list.test.js.snap @@ -34,17 +34,10 @@ exports[`EuiGlobalToastList props toasts is rendered 1`] = ` height="16" viewBox="0 0 16 16" width="16" - xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" > -