CI & Build / Python lint (push) Successful in 4s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / integration (push) Successful in 29s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 55s
CI & Build / Build & push image (push) Successful in 41s
76 hardcoded `color: #fff` now resolve to --fs-text-on-action, a new token that is parchment in BOTH modes. The design system said they should supersede to --fs-text-primary, on the recorded reasoning that "there is no 'text on action' colour, there is just the text colour." That is true on dark and wrong on light. --fs-text-primary inverts to #14171A; the surfaces underneath it do not invert at all — every one of these 76 sits on an action colour, a semantic colour, the accent, or the CTA gradient, all of which hold a single value across modes. Sweeping as recorded would have put obsidian text on moss green: roughly 2.4:1, against a house style whose stated floor is WCAG AA. It would have looked correct to me, because I checked it in the mode where it was correct. --color-accent-fg had the same defect independently and is repointed too. The token check now reports zero superseded literals, down from 30 files, and raw colour literals drop 246 -> 169. Closes #2275. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UaYUaouG9jjhATyuxCKrQs
88 lines
1.7 KiB
Vue
88 lines
1.7 KiB
Vue
<script setup lang="ts">
|
|
import { useToastStore } from "@/stores/toast";
|
|
|
|
const toastStore = useToastStore();
|
|
</script>
|
|
|
|
<template>
|
|
<div class="toast-container">
|
|
<transition-group name="toast">
|
|
<div
|
|
v-for="toast in toastStore.toasts"
|
|
:key="toast.id"
|
|
class="toast"
|
|
:class="`toast--${toast.type}`"
|
|
>
|
|
<span class="toast-msg">{{ toast.message }}</span>
|
|
<button class="toast-close" aria-label="Dismiss notification" @click="toastStore.dismiss(toast.id)">×</button>
|
|
</div>
|
|
</transition-group>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
.toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 6px;
|
|
color: var(--fs-text-on-action);
|
|
font-size: 0.9rem;
|
|
box-shadow: 0 2px 8px var(--color-shadow);
|
|
min-width: 200px;
|
|
}
|
|
.toast-msg {
|
|
flex: 1;
|
|
}
|
|
.toast-close {
|
|
background: none;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
line-height: 1;
|
|
padding: 0 0.15rem;
|
|
}
|
|
.toast-close:hover {
|
|
color: var(--fs-text-on-action);
|
|
}
|
|
.toast--success {
|
|
background: var(--color-toast-success);
|
|
}
|
|
.toast--error {
|
|
background: var(--color-toast-error);
|
|
}
|
|
.toast--warning {
|
|
background: var(--color-warning);
|
|
color: #1a1a1a;
|
|
}
|
|
.toast--warning .toast-close {
|
|
color: rgba(0, 0, 0, 0.5);
|
|
}
|
|
.toast--warning .toast-close:hover {
|
|
color: #1a1a1a;
|
|
}
|
|
.toast-enter-active,
|
|
.toast-leave-active {
|
|
transition: all 0.3s ease;
|
|
}
|
|
.toast-enter-from {
|
|
opacity: 0;
|
|
transform: translateX(100%);
|
|
}
|
|
.toast-leave-to {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
</style>
|