Skip to content

Commit

Permalink
feat: accordion size update
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-chase committed Apr 18, 2022
1 parent 0f46f96 commit d1ef1e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ CvAccordion

CvAccordion
align: Accordion heading alignment (start, end)
size: default, 'sm' or 'xl'
size: default, 'sm' 'md', 'lg' or 'xl'

CvAccordionItem
disabled: accordion item disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
size: {
type: String,
default: '',
validator: val => ['sm', 'xl', ''].includes(val),
validator: val => ['sm', 'md', 'lg', 'xl', ''].includes(val),
},
},
mixins: [carbonPrefixMixin],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/cv-accordion/cv-accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
size: {
type: String,
default: '',
validator: val => ['sm', 'xl', ''].includes(val),
validator: val => ['sm', 'md', 'lg', 'xl', ''].includes(val),
},
},
mixins: [carbonPrefixMixin],
Expand Down
4 changes: 3 additions & 1 deletion storybook/stories/cv-accordion-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const preKnobs = {
{
default: '',
'small (sm)': 'sm',
'large (xl)': 'xl',
'medium (md)': 'md',
'large (lg)': 'lg',
'extra large (xl)': 'xl',
},
'',
], // consts.CONFIG], // fails when used with number in storybook 4.1.4
Expand Down

0 comments on commit d1ef1e3

Please sign in to comment.