Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/RequestListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ function select(event?: MouseEvent) {
background: var(--color-background-hover);
}

// The list item pins its details column to the bottom: the chips sat lower in
// a row without a waiting time than in one with it.
:deep(.list-item-content__details) {
justify-content: center;
}

// Round the list item so the stripe + hover background clip nicely.
:deep(.list-item),
:deep(.list-item__wrapper) {
Expand Down
5 changes: 3 additions & 2 deletions src/components/StatusChip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ const meta = computed(() => statusMeta(props.status))
font-size: var(--font-size-small);
font-weight: 600;
// Contrast-optimised text on a solid tinted background (not transparent), so
// readability doesn't depend on whatever surface sits behind the chip.
// readability doesn't depend on whatever surface sits behind the chip. No
// border: tinted from each status colour, it stood out on the grey chips and
// vanished on the coloured ones.
color: var(--chip-text);
background: color-mix(in srgb, var(--chip-tint) 18%, var(--color-main-background));
border: 1px solid color-mix(in srgb, var(--chip-tint) 35%, transparent);
white-space: nowrap;

&__dot {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function statusMeta(status: ChipStatus | string): StatusMeta {
case 'CANCELLED':
return { label: t('absence', 'Cancelled'), text: 'var(--color-text-maxcontrast)', tint: 'var(--color-text-maxcontrast)', icon: '🚫' }
case 'RECORDED':
return { label: t('absence', 'Recorded'), text: 'var(--color-text-maxcontrast)', tint: 'var(--color-text-maxcontrast)', icon: '🗂️' }
return { label: t('absence', 'Recorded'), text: 'var(--color-info-text, var(--color-main-text))', tint: 'var(--color-info, var(--color-primary-element))', icon: '🗂️' }
case 'WITHDRAWAL_PENDING':
return { label: t('absence', 'Withdrawal pending'), text: 'var(--color-warning-text)', tint: 'var(--color-warning)', icon: '↩️' }
default:
Expand Down
Loading