fix(ui) : TabList — flèches intégrées dans la barre (bordure englobante, 36px des onglets)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-03 17:55:25 +02:00
parent 4687006fa3
commit 80132375b7
+4 -4
View File
@@ -1,13 +1,13 @@
<template> <template>
<div v-bind="$attrs"> <div v-bind="$attrs">
<div v-if="isWindowed" class="flex items-center justify-center gap-4"> <div v-if="isWindowed" class="flex items-end justify-center border-b border-m-primary">
<button <button
type="button" type="button"
aria-label="Onglets précédents" aria-label="Onglets précédents"
data-test="tab-prev" data-test="tab-prev"
:disabled="!canPrev" :disabled="!canPrev"
:class="[ :class="[
'text-m-primary', 'mr-[36px] pb-[6px] text-m-primary',
canPrev ? 'cursor-pointer hover:text-m-primary/70' : 'cursor-not-allowed text-m-primary/30', canPrev ? 'cursor-pointer hover:text-m-primary/70' : 'cursor-not-allowed text-m-primary/30',
]" ]"
@click="prev" @click="prev"
@@ -17,7 +17,7 @@
<div <div
role="tablist" role="tablist"
class="flex justify-center gap-[60px] border-b border-m-primary" class="flex justify-center gap-[60px]"
> >
<button <button
v-for="tab in visibleTabs" v-for="tab in visibleTabs"
@@ -55,7 +55,7 @@
data-test="tab-next" data-test="tab-next"
:disabled="!canNext" :disabled="!canNext"
:class="[ :class="[
'text-m-primary', 'ml-[36px] pb-[6px] text-m-primary',
canNext ? 'cursor-pointer hover:text-m-primary/70' : 'cursor-not-allowed text-m-primary/30', canNext ? 'cursor-pointer hover:text-m-primary/70' : 'cursor-not-allowed text-m-primary/30',
]" ]"
@click="next" @click="next"