Skip to content

Commit

Permalink
Merge pull request #62 from jedgar1mx/issue.61
Browse files Browse the repository at this point in the history
Fixing size controls for button story.
  • Loading branch information
jedgar1mx authored Aug 3, 2023
2 parents 6f4138a + 3de906e commit f300151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stories/button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
onClick: { action: 'onClick' },
size: {
control: { type: 'select' },
options: ['sm', 'lg'],
options: ['sm', 'md', 'lg'],
},
icon: {
control: { type: 'select' },
Expand Down Expand Up @@ -63,7 +63,7 @@ const Template = (args) => {
btn.setAttribute('data-hidden-label', args.hLabel);
}
if(args.size){
btn.setAttribute('data-id', args.size);
btn.setAttribute('data-size', args.size);
}
if(args.id){
btn.setAttribute('data-id', args.id);
Expand Down

0 comments on commit f300151

Please sign in to comment.