-
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(LinearProgress): set correct required props
- Loading branch information
1 parent
575c4de
commit 29c1455
Showing
4 changed files
with
133 additions
and
33 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 | ||
--- | ||
|
||
LinearProgress: Set correct required props. |
53 changes: 53 additions & 0 deletions
53
packages/einride-ui/src/components/charts/LinearProgress/LinearProgress.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 LinearProgress from "./LinearProgress.stories.tsx" | ||
|
||
<Meta of={LinearProgress} /> | ||
|
||
<Title /> | ||
|
||
<Description of={LinearProgress} /> | ||
|
||
```tsx | ||
import { LinearProgress } from "@einride/ui" | ||
``` | ||
|
||
## Basic | ||
|
||
<Description of={LinearProgress.Basic} /> | ||
|
||
<Canvas of={LinearProgress.Basic} /> | ||
|
||
<Controls of={LinearProgress.Basic} /> | ||
|
||
## Custom range | ||
|
||
<Description of={LinearProgress.CustomRange} /> | ||
|
||
<Canvas of={LinearProgress.CustomRange} /> | ||
|
||
<Controls of={LinearProgress.CustomRange} include={["min", "max", "value"]} /> | ||
|
||
## Range color | ||
|
||
<Description of={LinearProgress.CustomColor} /> | ||
|
||
<Canvas of={LinearProgress.CustomColor} /> | ||
|
||
<Controls of={LinearProgress.CustomColor} include="color" /> | ||
|
||
## Accessibility | ||
|
||
Adding a descriptive `aria-label` is required to convey what the progress is displaynig. |
56 changes: 53 additions & 3 deletions
56
packages/einride-ui/src/components/charts/LinearProgress/LinearProgress.stories.tsx
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