ruby-ui / ruby-ui/ruby_ui

`TableFooter` ships a corrupted class string

未关闭 适合新手
#539 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
Ruby
星标
1k
派生
67
平均合并
3 天 12 小时
30 天内合并 PR
14

描述

  • Where: gem/lib/ruby_ui/table/table_footer.rb:13:
    "border-t bg-muted/50 font-medium[& amp;>tr]:last:border-b-0". The
    amp; is HTML-decoded text pasted into Ruby source; a space before [
    is also missing.
  • Effect: every TableFooter emits the tokens font-medium[& and
    amp;>tr]:last:border-b-0 — neither is a Tailwind class, so font-medium
    and the last-row border rule are both lost.
  • Fix: "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0";
    re-record (on the 2.0 line) table/*.

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 gem/lib/ruby_ui/table/table_footer.rb:13 开始,检查 TableFooter 类字符串是否与 issue 预期的 tokens 一致。在 2.0 线上运行 golden HTML suite,重新记录 table/*,并检查 diff;完成的标准是存在已修正的类和已审查的快照,同时不更改 main。

由索引模型根据 Issue 内容生成。

评估

技术栈
ruby, tailwindcss
领域
frontend, testing
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
活跃
描述清晰度
描述清楚
新手友好度
82/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。