Skip to content

Commit

Permalink
Fix transparent buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Mar 30, 2023
1 parent 5690589 commit eb15997
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/VButton.vue
Expand Up @@ -358,10 +358,10 @@ a.button {
@apply border border-dark-charcoal-20 bg-white text-dark-charcoal hover:border-dark-charcoal;
}
.transparent-gray {
@apply bg-white text-dark-charcoal hover:bg-dark-charcoal-10;
@apply bg-tx text-dark-charcoal hover:bg-dark-charcoal-10;
}
.transparent-dark {
@apply bg-white text-dark-charcoal hover:bg-dark-charcoal hover:text-white;
@apply bg-tx text-dark-charcoal hover:bg-dark-charcoal hover:text-white;
}
.primary {
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/meta/VButton.stories.mdx
Expand Up @@ -31,7 +31,9 @@ export const buttonSizes = allButtonSizes.filter(

export const Template = (args) => ({
template: `
<div id="wrapper" class="w-40 h-16 flex items-center justify-center bg-white">
<div id="wrapper"
class="w-40 h-16 flex items-center justify-center"
:class="args?.variant.startsWith('transparent') ? 'bg-dark-charcoal-06': 'bg-white'">
<VButton v-bind="args" @click="onClick" href="/">
Code is Poetry
</VButton>
Expand Down

0 comments on commit eb15997

Please sign in to comment.