-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(StepVerticalProgress): set correct required props
- Loading branch information
1 parent
8449616
commit fb407fb
Showing
5 changed files
with
127 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@einride/ui": patch | ||
--- | ||
|
||
StepVerticalProgress: set correct required props. |
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
53 changes: 53 additions & 0 deletions
53
.../einride-ui/src/components/charts/StepVerticalProgress/StepVerticalProgress.mdx
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,53 @@ | ||
import { | ||
Meta, | ||
Primary, | ||
Description, | ||
Source, | ||
Title, | ||
ArgTypes, | ||
Subtitle, | ||
Controls, | ||
Story, | ||
Canvas, | ||
Stories, | ||
Markdown, | ||
} from "@storybook/blocks" | ||
import * as StepVerticalProgress from "./StepVerticalProgress.stories.tsx" | ||
|
||
<Meta of={StepVerticalProgress} /> | ||
|
||
<Title /> | ||
|
||
<Description of={StepVerticalProgress} /> | ||
|
||
```tsx | ||
import { StepVerticalProgress } from "@einride/ui" | ||
``` | ||
|
||
## Basic | ||
|
||
<Description of={StepVerticalProgress.Basic} /> | ||
|
||
<Canvas of={StepVerticalProgress.Basic} /> | ||
|
||
<Controls of={StepVerticalProgress.Basic} /> | ||
|
||
## Custom steps | ||
|
||
<Description of={StepVerticalProgress.CustomSteps} /> | ||
|
||
<Canvas of={StepVerticalProgress.CustomSteps} /> | ||
|
||
<Controls of={StepVerticalProgress.CustomSteps} include={["completedSteps", "steps"]} /> | ||
|
||
## Custom color | ||
|
||
<Description of={StepVerticalProgress.CustomColor} /> | ||
|
||
<Canvas of={StepVerticalProgress.CustomColor} /> | ||
|
||
<Controls of={StepVerticalProgress.CustomColor} include="color" /> | ||
|
||
## Accessibility | ||
|
||
Adding a descriptive `aria-label` is required to convey what the gauge is displaynig. |
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