`aria-*` boolean attributes serialize as the empty string
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- ruby
調査の方向性
design/v2/follow-up-issues.md を読み、2.0 系列の aria 属性に関する Base のシリアライゼーションパスを調査してください。golden HTML suite を実行し、影響を受けるカタログとコンポーネントのスナップショットを確認してください。breadcrumb の区切り、ellipsis、CommandInput、装飾的な SVGs も対象に含めます。完了条件は、aria のブール値が決定どおり "true" または "false" としてレンダリングされ、2.0 のスナップショットが再記録され、その diff がレビューされていることです。
索引モデルが issue の本文から書いたものです。
説明
- 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.
- 主要言語
- Ruby
- スター
- 1k
- フォーク
- 67
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 18
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ruby-ui/ruby_ui のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 35/100
ruby-ui/ruby_ui の issue をすべて見る
似ている issue
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
betagouv/acces-cible#722 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
foobara/empty-ruby-project-generator#10 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
バグ
難易度 1/5 1時間未満 初心者へのやさしさ 92/100