Skip to content

Commit dfc18f3

Browse files
authored
fix(ui5-rating-indicator): enhance storybook samples (#7446)
1 parent d0b8b01 commit dfc18f3

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

packages/playground/_stories/main/RatingIndicator/RatingIndicator.stories.ts

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const component = "ui5-rating-indicator";
1414
let index = 0;
1515

1616
export default {
17-
title: "Main/RatingIndicator",
17+
title: "Main/Rating Indicator",
1818
component: "RatingIndicator",
1919
parameters: {
2020
docs: {
@@ -36,41 +36,25 @@ const Template: UI5StoryArgs<RatingIndicator, StoryArgsSlots> = (args) => html`
3636
accessible-name-ref="${ifDefined(args.accessibleNameRef)}"
3737
></ui5-rating-indicator>`;
3838

39-
export const BasicRatingIndicator = Template.bind({});
40-
BasicRatingIndicator.args = {
39+
export const Basic = Template.bind({});
40+
Basic.args = {
4141
value: 3.7
4242
};
4343

44-
export const RatingIndicatorMax = Template.bind({});
45-
RatingIndicatorMax.args = {
44+
export const WithMaxValue = Template.bind({});
45+
WithMaxValue.args = {
4646
value: 5,
4747
max: 10
4848
};
49-
RatingIndicatorMax.storyName = "Rating Indicator with Max Value";
5049

51-
52-
export const DisabledRatingIndicator: StoryFn = Template.bind({});
53-
DisabledRatingIndicator.args = {
54-
value: 5,
55-
max: 10,
56-
disabled: true
57-
};
58-
59-
export const ReadonlyRatingIndicator: StoryFn = Template.bind({});
60-
ReadonlyRatingIndicator.args = {
61-
value: 5,
62-
max: 7,
63-
readonly: true
64-
};
65-
66-
export const RequiredRatingIndicatorWithLabel: StoryFn = Template.bind({});
67-
RequiredRatingIndicatorWithLabel.args = {
50+
export const WithRequiredLabel: StoryFn = Template.bind({});
51+
WithRequiredLabel.args = {
6852
value: 5,
6953
max: 7,
7054
accessibleNameRef: "label-acc-name-ref",
7155
required: true
7256
};
73-
RequiredRatingIndicatorWithLabel.decorators = [
57+
WithRequiredLabel.decorators = [
7458
(story) => {
7559
return html`
7660
<ui5-label id="label-acc-name-ref" required="true" for="rating-indicator-${index+1}">Rate us</ui5-label>

0 commit comments

Comments
 (0)