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(CodeSnippet): set number of closed and open rows #7826

Closed
wants to merge 15 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat(CodeSnippet) add Storybook govener
  • Loading branch information
Bill Guigue authored and Bill Guigue committed Mar 6, 2021
commit 08e7acaf41cc82d4ffcd3546155682f844dfe127
12 changes: 8 additions & 4 deletions packages/react/src/components/CodeSnippet/CodeSnippet-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,25 +143,29 @@ const lightProp = () => ({
const minClosedNumberOfRowsProp = () => ({
minClosedNumberOfRows: number(
'minClosedNumberOfRows: Specify the minimum number of rows to be shown when in closed view',
3
3,
{ min: 1 }
),
});
const minExpandedNumberOfRowsProp = () => ({
minExpandedNumberOfRows: number(
'minExpandedNumberOfRows: Specify the minimum number of rows to be shown when in expanded view',
16
16,
{ min: 1 }
),
});
const maxClosedNumberOfRowsProp = () => ({
maxClosedNumberOfRows: number(
'maxClosedNumberOfRows: Specify the maximum number of rows to be shown when in closed view',
15
15,
{ min: 1 }
),
});
const maxExpandedNumberOfRowsProp = () => ({
maxExpandedNumberOfRows: number(
'maxExpandedNumberOfRows: Specify the maximum number of rows to be shown when in expanded view',
50
50,
{ min: 1 }
),
});
const onClickProp = () => ({
Expand Down