Skip to content

Commit 42c5beb

Browse files
authored
Merge pull request #112 from buildo/uppercase-label-navigation
2 parents ee89e9f + 66e6124 commit 42c5beb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: packages/bento-design-system/src/Navigation/createNavigation.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type NavigationConfig = {
2929
illustrationSize: SizeConfig<IllustrationProps["size"]>;
3030
internalSpacing: SizeConfig<BentoSprinkles["gap"]>;
3131
activeVisualElement: JSX.Element;
32+
uppercaseLabel: boolean;
3233
};
3334

3435
type Kind = "none" | "icon" | "illustration";
@@ -98,7 +99,9 @@ export function createNavigation(config: NavigationConfig) {
9899
})}
99100
</Column>
100101
)}
101-
<Label size={config.labelSize[size]}>{label}</Label>
102+
<Label size={config.labelSize[size]} uppercase={config.uppercaseLabel}>
103+
{label}
104+
</Label>
102105
</Columns>
103106
{active && config.activeVisualElement}
104107
</Box>
@@ -179,4 +182,5 @@ export const defaultNavigationConfig: NavigationConfig = {
179182
style={{ height: 2 }}
180183
/>
181184
),
185+
uppercaseLabel: false,
182186
};

0 commit comments

Comments
 (0)