Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avatar and button to capitalize in Storybook #52

Merged
merged 1 commit into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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