Skip to content

Commit

Permalink
fix: avatar and button to capitalize in Storybook (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkireev authored Feb 20, 2023
1 parent df189b0 commit db95d21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions example/lib/src/storybook/stories/avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AvatarStory extends Story {

final avatarBackgroundColorKnob = context.knobs.options(
label: "backgroundColor",
description: "MoonColors variants for avatar background.",
description: "MoonColors variants for Avatar background.",
initial: 5, // bulma
options: colorOptions,
);
Expand All @@ -46,12 +46,12 @@ class AvatarStory extends Story {
max: 32,
initial: 8,
label: "borderRadius",
description: "Border radius for the avatar.",
description: "Border radius for the Avatar.",
);

final showBadgeKnob = context.knobs.boolean(
label: "showBadge",
description: "Show avatar badge.",
description: "Show Avatar badge.",
initial: true,
);

Expand All @@ -69,7 +69,7 @@ class AvatarStory extends Story {

final badgeColorKnob = context.knobs.options(
label: "badgeColor",
description: "MoonColors variants for the avatar badge.",
description: "MoonColors variants for the Avatar badge.",
initial: 18, // roshi100
options: colorOptions,
);
Expand All @@ -83,7 +83,7 @@ class AvatarStory extends Story {
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(height: 64),
const TextDivider(text: "Customisable avatar"),
const TextDivider(text: "Customisable Avatar"),
const SizedBox(height: 32),
MoonAvatar(
avatarSize: avatarSizesKnob,
Expand All @@ -98,7 +98,7 @@ class AvatarStory extends Story {
),
),
const SizedBox(height: 40),
const TextDivider(text: "Preset avatar with picture background"),
const TextDivider(text: "Preset Avatar with picture background"),
const SizedBox(height: 32),
MoonAvatar(
avatarSize: avatarSizesKnob,
Expand Down
4 changes: 2 additions & 2 deletions example/lib/src/storybook/stories/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ButtonStory extends Story {

final setFullWidthKnob = context.knobs.boolean(
label: "isFullWidth",
description: "Set button to full width.",
description: "Set Button to full width.",
);

IconData resolveIconVariant(MoonButtonSize buttonSize) {
Expand Down Expand Up @@ -118,7 +118,7 @@ class ButtonStory extends Story {
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(height: 64),
const TextDivider(text: "Base button and icon button"),
const TextDivider(text: "Base Button and Icon Button"),
const SizedBox(height: 32),
MoonButton(
onTap: showDisabledKnob ? null : () {},
Expand Down

0 comments on commit db95d21

Please sign in to comment.