Fix dark-mode table headers and phone-width overflow in the reference guide's CSS

オープン 初心者向け
#1,891 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@yashdotdev13 がすでに取り組んでいます。

2026年11月14日 から。

  • #1903 @yashdotdev13 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
css

調査の方向性

両方の修正はcss/wicket.cssに加えます。table thead、table tfoot、tbody tr thに対して、asciidoctor.cssの背景#f7f8f7を上書きするダークモード用のルールを追加し、max-width: 767pxブロック内の#toc.toc2の負のマージンを、そのコンテナのパディングに合うように変更してください。mvn -pl wicket-user-guide -Pguide generate-resourcesでビルドし、prefers-color-scheme: darkを指定した375 pxの幅でtarget/generated-docs/single.htmlを確認します。見出しのテキストのコントラスト比が4.5:1に達し、ページが横方向にスクロールしなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Two problems in the restyled reference guide (#1845), both in css/wicket.css, found while checking the accessibility chapter (#1847) in the new design.

Table header rows are unreadable in dark mode

asciidoctor.css gives table thead, table tfoot and tbody tr th the background #f7f8f7. In dark mode the header cells get the light text colour of the dark theme but keep this background, so the header row is light grey text, rgb(164, 184, 176), on an almost white background: a contrast of about 2:1, where WCAG 2.2 success criterion 1.4.3 asks for 4.5:1.

On master it shows on the one table with a header row, in "Working with AJAX" (chapter 19); #1847 adds a second one, the WCAG criteria table in "Accessibility". A dark-mode rule for table thead, table tfoot and tbody tr th that uses the page's own surface colour would fix both.

The page scrolls sideways at phone width

Below 768px, #toc.toc2 gets margin: 0 -36px (wicket.css, the max-width: 767px block). The table of contents then reaches from -18px to 393px on a 375px wide viewport, and the whole page scrolls 18px sideways (success criterion 1.4.10 asks for no scrolling in two directions at 320 CSS pixels). A negative margin that matches the padding of its container would keep the full-bleed look without the overflow.

Both were seen in target/generated-docs/single.html built with mvn -pl wicket-user-guide -Pguide generate-resources on master at 745ae018ec, in a 375 × 667 viewport and with prefers-color-scheme: dark.

主要言語
Java
スター
800
フォーク
423
平均マージ
1日 1時間
マージ済み PR(30日)
170

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/wicket のほかの issue

apache/wicket の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。