Browse Source
Task/improve Storybook stories of value component (#6496)
* Fix label and support size
* Update changelog
pull/6410/head
Thomas Kaul
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
10 additions and
1 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/value/value.component.stories.ts
|
|
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the _Storybook_ stories of the value component |
|
|
|
- Improved the language localization for Dutch (`nl`) |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
@ -16,6 +16,10 @@ export default { |
|
|
|
deviceType: { |
|
|
|
control: 'select', |
|
|
|
options: ['desktop', 'mobile'] |
|
|
|
}, |
|
|
|
size: { |
|
|
|
control: 'select', |
|
|
|
options: ['small', 'medium', 'large'] |
|
|
|
} |
|
|
|
} |
|
|
|
} as Meta<GfValueComponent>; |
|
|
|
@ -51,7 +55,11 @@ export const Label: Story = { |
|
|
|
args: { |
|
|
|
locale: 'en-US', |
|
|
|
value: 7.25 |
|
|
|
} |
|
|
|
}, |
|
|
|
render: (args) => ({ |
|
|
|
props: args, |
|
|
|
template: `<gf-value [locale]="locale" [size]="size" [value]="value">Label</gf-value>` |
|
|
|
}) |
|
|
|
}; |
|
|
|
|
|
|
|
export const PerformancePositive: Story = { |
|
|
|
|