-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap EuiHorizontalStep titles instead of truncating them. (#653)
* Wrap EuiHorizontalStep titles instead of truncating them. * Disallow clicks on disabled steps. * Remove focusability from disabled steps. * Add comments to explain flexbox styles.
- Loading branch information
Showing
9 changed files
with
184 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/components/steps/__snapshots__/step_horizontal.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiStepHorizontal is rendered 1`] = ` | ||
<div | ||
aria-disabled="false" | ||
aria-label="aria-label" | ||
aria-selected="false" | ||
class="euiStepHorizontal testClass1 testClass2 euiStepHorizontal-isIncomplete" | ||
data-test-subj="test subject string" | ||
role="tab" | ||
tabindex="0" | ||
title="Step 1: First step" | ||
> | ||
<div | ||
class="euiScreenReaderOnly" | ||
> | ||
Step | ||
</div> | ||
<div | ||
class="euiStepHorizontal__number" | ||
> | ||
1 | ||
</div> | ||
<div | ||
class="euiStepHorizontal__title" | ||
> | ||
First step | ||
</div> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.