Skip to content

๐ŸŽจ Palette: ๋ฐ์ดํ„ฐ ํ…Œ์ด๋ธ” ์ ‘๊ทผ์„ฑ ํ–ฅ์ƒ ๋ฐ ์ˆซ์ž ์ •๋ ฌ(tabular-nums) ์ ์šฉ - #249

Closed
seonghobae wants to merge 1 commit into
mainfrom
ux/table-accessibility-improvement-15485063106557305020
Closed

๐ŸŽจ Palette: ๋ฐ์ดํ„ฐ ํ…Œ์ด๋ธ” ์ ‘๊ทผ์„ฑ ํ–ฅ์ƒ ๋ฐ ์ˆซ์ž ์ •๋ ฌ(tabular-nums) ์ ์šฉ#249
seonghobae wants to merge 1 commit into
mainfrom
ux/table-accessibility-improvement-15485063106557305020

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

๐Ÿ’ก ํ•ด๊ฒฐ ๋‚ด์šฉ (What)

๋ฐ์ดํ„ฐ ํ…Œ์ด๋ธ”์˜ ์ฒซ ๋ฒˆ์งธ ์—ด์„ ๋ Œ๋”๋งํ•  ๋•Œ <td> ๋Œ€์‹  <th scope="row">๋ฅผ ์‚ฌ์šฉํ•˜๋„๋ก ์ˆ˜์ •ํ•˜์—ฌ, ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ๋“ฑ ๋ณด์กฐ ๊ธฐ๊ธฐ๊ฐ€ ํ‘œ์˜ ๊ฐ ํ–‰์— ๋Œ€ํ•œ ์ œ๋ชฉ(Context)์„ ์ •ํ™•ํ•˜๊ฒŒ ์ธ์‹ํ•  ์ˆ˜ ์žˆ๋„๋ก ์ ‘๊ทผ์„ฑ์„ ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.

๐ŸŽฏ ๋ฌธ์ œ ์›์ธ ๋ฐ ๊ธฐ๋Œ€ ํšจ๊ณผ (Why)

  • ์ ‘๊ทผ์„ฑ(Accessibility) ํ–ฅ์ƒ: ์‹œ๊ฐ ์žฅ์• ์ธ ์‚ฌ์šฉ์ž๊ฐ€ ํ™”๋ฉด ๋‚ญ๋…๊ธฐ๋ฅผ ํ†ตํ•ด ๋ฐ์ดํ„ฐ ํ…Œ์ด๋ธ”์„ ํƒ์ƒ‰ํ•  ๋•Œ, ํ˜„์žฌ ์ฝ๊ณ  ์žˆ๋Š” ๋ฐ์ดํ„ฐ๊ฐ€ ์–ด๋–ค ํ•ญ๋ชฉ(Row)์— ์†ํ•˜๋Š”์ง€ ๋ช…ํ™•ํ•˜๊ฒŒ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์‹œ๊ฐ์  ์ •๋ ฌ(Typography): ๋ฐ์ดํ„ฐ ํ…Œ์ด๋ธ” ๋‚ด์˜ ๋ชจ๋“  ๋ฐ์ดํ„ฐ ์…€(td, tbody th)์— font-variant-numeric: tabular-nums๋ฅผ ์ ์šฉํ•˜์—ฌ ๊ณ ์ •ํญ ์ˆซ์ž ํ‘œ๊ธฐ๊ฐ€ ๋˜๋„๋ก ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ์ˆซ์ž ๋ฐ์ดํ„ฐ๊ฐ€ ์„ธ๋กœ๋กœ ๊น”๋”ํ•˜๊ฒŒ ์ •๋ ฌ๋ฉ๋‹ˆ๋‹ค.
  • ์‹œ๊ฐ์  ํšŒ๊ท€(Visual Regression) ๋ฐฉ์ง€: <th> ํƒœ๊ทธ ๋„์ž…์œผ๋กœ ์ธํ•ด ๊ธ€์”จ๊ฐ€ ๊ตต์–ด์ง€๊ฑฐ๋‚˜ ๊ธฐ์กด ๋””์ž์ธ์ด ๊นจ์ง€์ง€ ์•Š๋„๋ก, CSS ์„ ํƒ์ž๋ฅผ thead th, tbody th๋กœ ์„ธ๋ถ„ํ™”ํ•˜๊ณ  ์ ์ ˆํ•œ ์Šคํƒ€์ผ(์˜ˆ: font-weight: normal)์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“ธ ์ฃผ์š” ๋ณ€๊ฒฝ ์‚ฌํ•ญ

  • python/fast_mlsirm/report.py์˜ _table ํ•จ์ˆ˜ ๋‚ด ํ–‰ ๋ Œ๋”๋ง ๋กœ์ง ์ˆ˜์ •
  • ํ…Œ์ด๋ธ” CSS ์Šคํƒ€์ผ๋ง ์„ธ๋ถ„ํ™” ๋ฐ tabular-nums ์†์„ฑ ์ถ”๊ฐ€
  • UX/a11y ๊ด€๋ จ ๋ฐฐ์šด ์ ์„ .jules/palette.md ์ €๋„์— ๊ธฐ๋ก

PR created automatically by Jules for task 15485063106557305020 started by @seonghobae

- Changed the first column in data tables to use `<th scope="row">` to provide structural context for screen readers.
- Updated CSS base selectors to support `tbody th` and explicitly prevent visual regressions on the new row headers.
- Applied `font-variant-numeric: tabular-nums` to all data cells for better number alignment.
Copilot AI review requested due to automatic review settings July 25, 2026 02:27
@google-labs-jules

Copy link
Copy Markdown

๐Ÿ‘‹ Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a ๐Ÿ‘€ emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the generated HTML diagnostics report tables by adding proper row headers for assistive technologies and refining table typography so numeric columns align more cleanly.

Changes:

  • Render the first cell of each table body row as a row header (<th scope="row">) instead of a <td> to improve screen reader row context.
  • Refine table CSS selectors to separately style thead th vs tbody th, and apply font-variant-numeric: tabular-nums for consistent numeric alignment.
  • Record the accessibility/UX takeaway in .jules/palette.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
python/fast_mlsirm/report.py Updates HTML table row rendering to use row headers and refines table CSS (header/body selectors + tabular-nums).
.jules/palette.md Adds a journal entry documenting the accessibility + typography rationale for the table changes.

๐Ÿ’ก Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +704 to 707
tr:last-child td,
tr:last-child th {
border-bottom: 0;
}
Comment on lines 320 to 325
cells = "".join(
f"<td>{escape(_format_value(row.get(column, '')))}</td>"
for column in columns
f'<th scope="row">{escape(_format_value(row.get(column, "")))}</th>'
if i == 0
else f'<td>{escape(_format_value(row.get(column, "")))}</td>'
for i, column in enumerate(columns)
)
@seonghobae
seonghobae enabled auto-merge (squash) July 26, 2026 09:01
@opencode-agent
opencode-agent Bot disabled auto-merge July 26, 2026 09:44

Copy link
Copy Markdown
Contributor Author

์ค‘๋ณต ์ •๋ฆฌ: report.py ํ…Œ์ด๋ธ” ์ ‘๊ทผ์„ฑ+tabular-nums ๊ฐœ์„ ์œผ๋กœ, ๋ฆฌ๋ทฐ ๋Œ€๊ธฐ ์ค‘์ธ #187 ๊ณผ ๋™์ผ ๋Œ€์ƒยท๋™์ผ ์ทจ์ง€์ž…๋‹ˆ๋‹ค. ๊ทธ๋ฃน๋‹น ๋Œ€ํ‘œ 1๊ฑด๋งŒ ๋‚จ๊ธฐ๋Š” ๋ฐฑ๋กœ๊ทธ ์ •๋ฆฌ ๋ฐฉ์นจ์— ๋”ฐ๋ผ ๋‹ซ์Šต๋‹ˆ๋‹ค. ํ•„์š” ์‹œ ์žฌ์˜คํ”ˆ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.


Generated by Claude Code

@google-labs-jules

Copy link
Copy Markdown

์ค‘๋ณต ์ •๋ฆฌ: report.py ํ…Œ์ด๋ธ” ์ ‘๊ทผ์„ฑ+tabular-nums ๊ฐœ์„ ์œผ๋กœ, ๋ฆฌ๋ทฐ ๋Œ€๊ธฐ ์ค‘์ธ #187 ๊ณผ ๋™์ผ ๋Œ€์ƒยท๋™์ผ ์ทจ์ง€์ž…๋‹ˆ๋‹ค. ๊ทธ๋ฃน๋‹น ๋Œ€ํ‘œ 1๊ฑด๋งŒ ๋‚จ๊ธฐ๋Š” ๋ฐฑ๋กœ๊ทธ ์ •๋ฆฌ ๋ฐฉ์นจ์— ๋”ฐ๋ผ ๋‹ซ์Šต๋‹ˆ๋‹ค. ํ•„์š” ์‹œ ์žฌ์˜คํ”ˆ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.


Generated by Claude Code

์•Œ๊ฒ ์Šต๋‹ˆ๋‹ค. ๋ฐฑ๋กœ๊ทธ ์ •๋ฆฌ ๋ฐฉ์นจ์— ๋”ฐ๋ผ ์ค‘๋ณต์œผ๋กœ ์ฒ˜๋ฆฌ๋˜์–ด ๋‹ซํžŒ ๊ฒƒ์„ ํ™•์ธํ–ˆ์œผ๋ฉฐ ์ž‘์—…์„ ์ค‘๋‹จํ•ฉ๋‹ˆ๋‹ค.

@seonghobae seonghobae closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants