fix: remove legacy button classes (#7011)

* fix: remove legacy button-group class for tailwind (conflicts)

* fix: delete legacy button classes from scss

* fix: fmt
This commit is contained in:
Calum H.
2026-08-05 16:34:00 +02:00
committed by GitHub
parent c0e6f094d9
commit 0038ea8b15
23 changed files with 162 additions and 564 deletions
@@ -3,19 +3,21 @@
ref="scrollContainer"
class="card-shadow relative flex w-fit overflow-x-auto rounded-full bg-bg-raised p-1 text-sm font-bold"
>
<button
<Button
v-for="(option, index) in options"
:key="`option-group-${index}`"
ref="optionButtons"
class="button-animation z-[1] flex flex-row items-center gap-2 rounded-full bg-transparent px-4 py-2 font-semibold"
type="quiet"
interaction="none"
class="z-[1] !h-auto !gap-2 !rounded-full !px-4 !py-2"
:class="{
'text-button-textSelected': modelValue === option,
'text-primary': modelValue !== option,
'!text-brand': modelValue === option,
'!text-primary': modelValue !== option,
}"
@click="setOption(option)"
>
<slot :option="option" :selected="modelValue === option" />
</button>
</Button>
<div
class="navtabs-transition pointer-events-none absolute h-[calc(100%-0.5rem)] overflow-hidden rounded-full bg-button-bgSelected p-1"
:style="{
@@ -33,6 +35,8 @@
<script setup lang="ts" generic="T">
import { computed, onMounted, ref, watch } from 'vue'
import Button from './buttons/Button.vue'
const modelValue = defineModel<T>({ required: true })
const props = defineProps<{
@@ -64,7 +68,7 @@ watch(modelValue, () => {
})
function startAnimation(index: number) {
const el = optionButtons.value[index]
const el = optionButtons.value[index]?.element
if (!el || !el.offsetParent) return