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
parent
commit
49d685c8ad
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 10
      libs/ui/src/lib/value/value.component.stories.ts

1
CHANGELOG.md

@ -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

10
libs/ui/src/lib/value/value.component.stories.ts

@ -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 = {

Loading…
Cancel
Save