Skip to content

Commit

Permalink
style(CtaComponent): add quaternary style
Browse files Browse the repository at this point in the history
  • Loading branch information
Readpato committed Nov 26, 2023
1 parent 21f17e5 commit 53c0197
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/components/buttons/CtaComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useCtaComponent } from '@/functions/useCtaComponent'
defineProps<{
secondary?: boolean
tertiary?: boolean
quaternary?: boolean
}>()
const { component, bindings } = useCtaComponent(useAttrs())
Expand All @@ -16,9 +17,10 @@ const { component, bindings } = useCtaComponent(useAttrs())
v-bind="bindings"
class="cta"
:class="{
'py-1 px-1.5 rounded-1': secondary || tertiary,
'py-1 px-1.5 rounded-1': secondary || tertiary || quaternary,
'secondary': secondary,
'tertiary': tertiary,
'quaternary': quaternary,
}"
>
<slot />
Expand Down Expand Up @@ -68,6 +70,13 @@ const { component, bindings } = useCtaComponent(useAttrs())
}
}
.quaternary {
border: none;
background-color: $nord10 !important;
color: #fff !important;
transition: transform 0.3s ease-in;
}
.#{$dark-mode-class} {
.cta {
border: none;
Expand Down
2 changes: 1 addition & 1 deletion src/components/events/EventForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const options = readonly({
{{ month }}
</option>
</EventFormSelect>
<CtaComponent tertiary @click.prevent="$emit('toggleEvents')">
<CtaComponent quaternary @click.prevent="$emit('toggleEvents')">
{{ hidePastEvents
? $t('page.events.copy.form.items.pastEvents.show')
: $t('page.events.copy.form.items.pastEvents.hide') }}
Expand Down

0 comments on commit 53c0197

Please sign in to comment.