Skip to content

Commit

Permalink
fix(button): solve an issue when outlined and no variant is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek committed Sep 4, 2024
1 parent 18da2a0 commit ad9f5d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const bootstrapConfig: OrugaOptions = {
roundedClass: "rounded-pill",
expandedClass: "expanded",
outlinedClass: (_: string, props: ComponentProps) => {
if (!props.variant) return "btn-outline";
return `btn-outline-${props.variant}`;
},
disabledClass: "btn-disabled",
Expand Down

0 comments on commit ad9f5d3

Please sign in to comment.