From b70d035792901bb78c7d0f250fa3602ab78dcb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaque=20B=C3=B6ck?= Date: Wed, 1 Jul 2026 12:56:53 -0300 Subject: [PATCH 1/2] [NO-ISSUE] refactor: replace Label Required tag with inline *Required indicator The Required tag (severity=warning size=small) is replaced by inline text 'asterisk + Required', where the asterisk uses var(--primary) (orange F3652B) and the word Required uses var(--text-muted). The asterisk is decorative (aria-hidden=true) so screen readers announce only 'Required' alongside the label text. Applies uniformly across every consumer of Label with required=true: field-text, field-password, field-input-group, field-checkbox, field-radio, field-switch, field-textarea. Tag component is no longer imported by label.vue. Spec body updated (Purpose, Props JSDoc, Tokens, Accessibility); checksum refreshed to e261b72f (also fixes a pre-existing checksum drift on label.md that the enforce-spec-exists hook flagged when this change tried to write). --- .specs/label.md | 10 ++++++---- .../src/components/inputs/label/label.vue | 18 ++++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.specs/label.md b/.specs/label.md index ffdd08204..2bf11e46b 100644 --- a/.specs/label.md +++ b/.specs/label.md @@ -7,7 +7,7 @@ spec_version: 1 figma: url: https://www.figma.com/design/t97pXRs7xME3SJDs5iZ5RF/Webkit?node-id=562-6660 node_id: 562:6660 -checksum: ece9d2e9709b3d49abc00122991f5409b5e98e3dfe85fc8c1bfcbb0f1add5dfd +checksum: e261b72fa4b697ec15057be72d4a470106dba9efcf1e3daef9da429ff8d6010e created: 2026-06-15 last_updated: 2026-06-15 --- @@ -16,7 +16,7 @@ last_updated: 2026-06-15 ## Purpose -Form-field label that pairs descriptive text with an optional `Required` badge. Renders a native `