feat: enhance UI components for better accessibility and consistency

This commit is contained in:
Jose Selesan
2026-09-30 10:33:06 -03:00
parent 13c1446977
commit 27bff32e76
6 changed files with 55 additions and 32 deletions

View File

@@ -37,7 +37,10 @@ export function PendingView() {
if (!hasAnyEntry && !query) {
return (
<div className="rounded-lg bg-primary-soft/50 px-4 py-10 text-center">
// Full-bleed y sin radio propio: el `overflow-hidden` del panel lo recorta
// contra la silueta redondeada. `surface` sobre `primary-soft` hunde el
// bloque; con el lavado anterior se camuflaba.
<div className="bg-surface px-4 py-10 text-center">
<Inbox className="mx-auto mb-2 size-10 text-foreground/40" />
<p className="text-sm font-semibold text-primary">No hay pendientes</p>
<p className="mx-auto mt-1 max-w-sm text-sm text-foreground/80">
@@ -94,7 +97,7 @@ export function PendingView() {
return (
<section key={section.key} aria-labelledby={titleId}>
<div className="flex items-center gap-2 border-b border-border/70 px-3 pb-1.5 pt-2">
<div className="flex items-center gap-2 border-b border-foreground/10 px-3 pb-1.5 pt-2">
<Icon className="size-4 shrink-0 text-accent" aria-hidden="true" />
<h3
id={titleId}
@@ -108,7 +111,7 @@ export function PendingView() {
'ml-auto inline-flex items-center justify-center rounded-full px-1.5 py-0.5 text-[10px] font-bold leading-none tabular-nums',
section.attention
? 'bg-warning-soft text-warning'
: 'bg-primary-soft text-foreground/70',
: 'bg-surface text-foreground/70',
)}
>
{section.count}