`aria-*` boolean attributes serialize as the empty string
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- ruby
- Bereich
- accessibility
Rechercherichtung
Lies design/v2/follow-up-issues.md und untersuche den Base-Serialisierungspfad für aria-Attribute im 2.0-Zweig. Führe die golden HTML suite aus und prüfe die betroffenen Katalog- und Komponenten-Snapshots, einschließlich Breadcrumb-Trennzeichen, Ellipse, CommandInput und dekorativer SVGs. Erledigt ist die Aufgabe, wenn aria-Boolesche Werte wie festgelegt als "true" oder "false" gerendert werden, die 2.0-Snapshots neu aufgezeichnet wurden und ihr Diff geprüft wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
- Where: the components that pass a boolean under the
ariahash:
aria: {hidden: true}inBreadcrumbSeparator,BreadcrumbEllipsisand
PaginationEllipsis(also reached throughDataTablePagination),
aria: {disabled: true}inBreadcrumbPage,aria_expanded: truein
CommandInput. The breadcrumb, pagination, data_table and command
snapshots carryaria-hidden="",aria-disabled=""oraria-expanded="".
Components that pass the String"true"—InputOtpSlot,
NativeSelectIcon,AlertDialogContent— already serialize correctly and
are not affected. - Effect: the ARIA value grammar accepts
true/false/undefined; an
empty string is invalid and browsers resolve it as not set. The breadcrumb
and pagination separators and ellipses are therefore exposed to assistive
technology, "current" breadcrumb items are not announced as disabled, and the
command input's expanded state is unset. This is Phlex's serialization of
trueunder a nested hash (a bare attribute), so any component that passes
a boolean there is affected — five today. - Fix: pass
"true"(a String) foraria-*attributes, or add a
serialization rule inBasethat stringifies booleans under thearia
key; re-record (on the 2.0 line) everything that changes and review the diff. - 2.0 note: spec §4.3 currently preserves this behaviour for parity
(true→""). The right 2.0 behaviour isaria-x="true"; decide it
explicitly and let the re-record (on the 2.0 line) show the blast radius.
Surfaced by the golden HTML suite (PR #536), which pins what 1.6 renders today — this defect included. Per maintainer decision (2026-09-19) main stays as is: this is addressed on the 2.0 line, and the golden snapshot that pins it is re-recorded there with the diff reviewed.
Source: design/v2/follow-up-issues.md.
- Vorherrschende Sprache
- Ruby
- Sterne
- 1k
- Forks
- 67
- Ø Merge
- 2 T. 19 Std.
- Gemergte PRs (30 T.)
- 18
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ruby-ui/ruby_ui
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
-
bug
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 35/100
Alle Issues in ruby-ui/ruby_ui
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
バグ
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
voxpupuli/puppet-epel#186 · 1 Kommentar ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OffenBug Frontend
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100