Skip to content

Commit

Permalink
Merge pull request #34 from Infineon/33-button-default-variant
Browse files Browse the repository at this point in the history
default variant
  • Loading branch information
tishoyanchev authored Feb 7, 2023
2 parents b28e0c8 + 7314c82 commit a8b3232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Button {
return classNames(
'btn',
this.size && `btn-${this.getSizeClass()}`,
this.variant && `btn-${this.getVariantClass()}`,
`btn-${this.getVariantClass()}`,
this.iconOnly && `btn-icon-only`,
!this.iconOnly &&
this.iconPosition &&
Expand Down
7 changes: 2 additions & 5 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@

<body>

<ifx-button color="primary" size="s" variant="outline-text">primary</ifx-button>
<ifx-button color="secondary" variant="outline-text">secondary</ifx-button>
<ifx-button color="success" variant="outline-text" disabled>success</ifx-button>
<ifx-button color="warning" variant="outline-text" disabled>warning</ifx-button>
<ifx-button color="danger" variant="solid" disabled>danger</ifx-button>
<ifx-button color="success">drop it</ifx-button>


</body>

Expand Down

0 comments on commit a8b3232

Please sign in to comment.