Skip to content

Commit

Permalink
LG-3185, 3733: Button baseFontSize knob fix; Button LiveExample fontW…
Browse files Browse the repository at this point in the history
…eight fix (#2065)

* fix baseFontSize knob for button story

* changeset

* remove updatedBaseFontSize knob

---------

Co-authored-by: Shaneeza <[email protected]>
  • Loading branch information
spark33 and shaneeza authored Nov 6, 2023
1 parent 99848a0 commit 6c89b45
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/poor-zoos-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@leafygreen-ui/button': patch
---

The baseFontSize knob for Button's LiveExample on .design now toggles correctly
7 changes: 6 additions & 1 deletion packages/button/src/Button.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ import {
type StoryType,
} from '@leafygreen-ui/lib';
import { Spinner } from '@leafygreen-ui/loading-indicator';
import { BaseFontSize } from '@leafygreen-ui/tokens';

import { Size } from './types';
import Button, { ButtonProps, Variant } from '.';

const { updatedBaseFontSize, ...filteredStorybookArgTypes } = storybookArgTypes;

const meta: StoryMetaType<typeof Button> = {
title: 'Components/Button',
component: Button,
Expand Down Expand Up @@ -48,9 +51,11 @@ const meta: StoryMetaType<typeof Button> = {
loadingIndicator: <Spinner />,
leftGlyph: undefined,
rightGlyph: undefined,
baseFontSize: BaseFontSize.Body1,
},
argTypes: {
...storybookArgTypes,
...filteredStorybookArgTypes,
baseFontSize: storybookArgTypes.updatedBaseFontSize,
disabled: {
control: { type: 'boolean' },
},
Expand Down

0 comments on commit 6c89b45

Please sign in to comment.