[2.x] Dark theme: Admin search highlight lack contrast

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

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
css

調査の方向性

--highlight-color が定義されている場所と、管理検索結果がハイライト スタイルを適用する場所を特定し、次にダークテーマのオーバーライドをライトテーマと比較します。ダークテーマと "spam" などの管理検索で再現し、提案された outline スタイルを周囲の段落テキストと比較してテストします。完了とは、ハイライトされた一致箇所がライトテーマをリグレッションさせることなくダークテーマで読めることを意味します。issue ではテスト ファイルは指定されていません。

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

説明

type/accessibility type/bug
Current Behavior

When using the admin search the highlighted matchin results lack contrast with white text on yellow background.

Steps to Reproduce
  1. Set theme to dark
  2. Use the admin search, e.g. for "spam"
  3. Cannot read the matches on the yellow highlight background
Expected Behavior

Dark theme should use a more contrasty var(--highlight-color) or even different outline styling.

Screenshots
image
Environment
  • Flarum version: 2.1-dev
Output of php flarum info

No response

Possible Solution

Tried to use the current --highlight-color: #FFE300; on 50% opacity, but even that is not sufficient contrast on the paragraphs below (see light gray text here):
image
So maybe on dark theme the matching needs an outline styling instead?
image

FYI: search result highlighting on frontend only relies on bolder font weight...

Additional Context

No response

主要言語
PHP
スター
6.8k
フォーク
891
平均マージ
1日 10時間
マージ済み PR(30日)
209

環境構築

はじめの一歩

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

flarum/framework のほかの issue

flarum/framework の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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