Skip to content

Commit

Permalink
feat(Button): customizable button shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed May 21, 2024
1 parent 6d4b8c1 commit d6f0be5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/button/src/VBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const classes = computed(() => {
'btn--text': props.text,
'btn--soft': props.soft,
'btn--flush': props.flush,
shadow: props.shadow,
'btn--shadow': props.shadow,
},
];
});
Expand Down
7 changes: 6 additions & 1 deletion packages/themes/src/morpheme/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
--btn-font-size: var(--size-font-sm);
--btn-line-height: 20px;
--btn-font-weight: 600;
--btn-shadow: none;
--btn-shadow: var(--effect-shadow-xs);
--btn-icon-width: 20px;
--btn-icon-height: 20px;
--btn-line-height: 20px;
Expand Down Expand Up @@ -474,6 +474,11 @@
--btn-height: auto;
}

// shadow
&--shadow {
box-shadow: var(--btn-shadow);
}

// sizes
&--sm {
--btn-font-size: var(--size-font-sm);
Expand Down

0 comments on commit d6f0be5

Please sign in to comment.