Bootstrap's secondary and tertiary greys stay light in the dark colour scheme
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- sass, scss
調査の方向性
src/resources/formats/html/bootstrap/dist/scss/_variables.scssから始めます。issueで示されている薄いグレーのデフォルト値を確認し、ダークバンドルでブランドカラーがどのように設定されるかを追います。暗い背景色からセカンダリおよびターシャリの背景色を導き、その後、提示された例をダークモードでレンダリングして、影響を受けるボックスのコントラストが読みやすいことを確認します。
索引モデルが issue の本文から書いたものです。
説明
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
In the dark colour scheme of a brand, Bootstrap's grey boxes keep the light greys of the light scheme, under the light text of the dark scheme.
The text then has a contrast of about 1:1 with its box, so it cannot be read (WCAG 1.4.3).
Bootstrap sets $body-secondary-bg: $gray-200 and $body-tertiary-bg: $gray-100 (src/resources/formats/html/bootstrap/dist/scss/_variables.scss, lines 450 and 453).
Quarto builds the dark bundle from the dark brand colours, but nothing moves these two variables away from the light greys.
They reach, among others:
- the disabled form field (
$input-disabled-bg), - the input group text box (
$input-group-addon-bg), - the pagination hover, focus, and disabled boxes (
$pagination-hover-bg,$pagination-focus-bg,$pagination-disabled-bg), - the popover header, the progress bar, and the active list group item.
Deriving $body-secondary-bg and $body-tertiary-bg from the dark background in the dark bundle would fix all of these at once.
| Light | Dark |
|---|---|
Steps to reproduce
_brand.yml:
color:
background:
light: "#ffffff"
dark: "#14181c"
foreground:
light: "#1a1a1a"
dark: "#e8e6e1"
primary: "#1f6f8b"
index.qmd:
---
title: "Grey boxes in the dark scheme"
format: html
brand: _brand.yml
respect-user-color-scheme: true
---
```{=html}
<input class="form-control mb-2" value="Enabled field">
<input class="form-control mb-3" disabled value="Disabled field">
<div class="input-group mb-3">
<span class="input-group-text">Filter</span>
<input class="form-control" placeholder="Search">
</div>
<ul class="pagination">
<li class="page-item disabled"><a class="page-link">Previous</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
</ul>
```
Render it, and open it with the system set to dark mode.
Actual behavior
| Scheme | Element | Background | Text | Contrast |
|---|---|---|---|---|
| Light | Disabled field | rgb(233, 236, 239) |
rgb(26, 26, 26) |
14.68:1 |
| Light | Input group text | rgb(248, 249, 250) |
rgb(26, 26, 26) |
16.51:1 |
| Light | Disabled page | rgb(233, 236, 239) |
rgba(26, 26, 26, 0.75) |
6.97:1 |
| Dark | Disabled field | rgb(233, 236, 239) |
rgb(232, 230, 225) |
1.05:1 |
| Dark | Input group text | rgb(248, 249, 250) |
rgb(232, 230, 225) |
1.18:1 |
| Dark | Disabled page | rgb(233, 236, 239) |
rgba(232, 230, 225, 0.75) |
1.04:1 |
The pagination hover and focus boxes are light boxes on the dark page as well, with the link colour as text.
Expected behavior
In the dark scheme, these boxes sit on greys derived from the dark background, and their text keeps at least 4.5:1, as it does in the light scheme.
Your environment
- OS: macOS 27.2.
- Browser: Brave (Chromium).
Quarto check output
Quarto 99.9.9
[✓] Checking environment information...
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.107.1: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 089ba530b3ed4ec156a355d41b6b7de2db3e44ea
- 主要言語
- JavaScript
- スター
- 6.1k
- フォーク
- 478
- 平均マージ
- 17時間 53分
- マージ済み PR(30日)
- 135
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quarto-dev/quarto-cli のほかの issue
-
accessibility bug embed
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
quarto-dev/quarto-cli#15306 ·
メンテナーはふだん 1 日以内に返信
-
bootstrap bug themes
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
quarto-dev/quarto-cli#15304 ·
メンテナーはふだん 1 日以内に返信
-
accessibility bug code-blocks html themes
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
quarto-dev/quarto-cli#15303 ·
メンテナーはふだん 1 日以内に返信
-
bootstrap bug html tables
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/quarto-cli#15300 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug html
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
quarto-dev/quarto-cli#15297 ·
メンテナーはふだん 1 日以内に返信
quarto-dev/quarto-cli の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
OWASP/CheatSheetSeries#2905 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ComposioHQ/composio#5249 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
zilliztech/memsearch#838 ·
メンテナーはふだん 1 日以内に返信
-
[DOCS] Nine one-colon directives hide code examples and notes in the reference docs (e.g. CustomJS)オープンTRIAGE
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
cdx-audit output written to a pipe is cut off at 64 KiB再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug mode:cli
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信