Colour scheme toggle icon ignores the sidebar tool size
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- sass
- Domain
- frontend
Research direction
Read src/resources/formats/html/bootstrap/_bootstrap-rules.scss at the linked rules around lines 1723–1731; the issue identifies the fixed ::before dimensions and the sidebar tool font size. Render the supplied website example and compare the toggle icon with the link icons. Done when the toggle icon matches their size.
Written by the indexing model from the issue text.
Description
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 tools row of a docked sidebar, the colour scheme toggle icon is larger than the other tool icons.
The tools take their size from the font size of the row (0.875rem), but the toggle icon is drawn by a ::before box with a fixed 1rem height, width and background size.
Measured with a docked sidebar that has a GitHub tool, a second link tool and the colour scheme toggle:
| Tool | Icon box | ::before size |
|---|---|---|
| GitHub link | 14.9px by 17px | 14.875px by 14.875px |
| Second link | 14.9px by 17px | 14.875px by 14.875px |
| Colour scheme toggle | 17px by 17px | 17px by 17px |
The red outlines in this screenshot mark the ::before box of each icon.
Steps to reproduce
_quarto.yml:
project:
type: website
website:
title: t
sidebar:
style: docked
tools:
- icon: github
href: https://example.org
aria-label: Example repository
- icon: twitter
href: https://example.org
aria-label: Example social
contents: [index.qmd]
format:
html:
theme:
light: default
dark: darkly
index.qmd is any page with a title.
Render the project and compare the size of the three tool icons at the top of the sidebar.
Actual behavior
The toggle icon is 17px, and the link icons are 14.875px.
Expected behavior
The toggle icon has the same size as the other tools in the row, for example by sizing the ::before box in em instead of rem.
Your environment
- IDE: none, terminal only
- OS: macOS (Darwin 27.0.0, Apple Silicon)
Quarto check output
Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.7.14: OK
Typst version 0.15.1: OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 69592e5c1718d3e1b2f3d11e757d32e23a16af67
- Dominant language
- JavaScript
- Stars
- 6.1k
- Forks
- 476
- Avg merge
- 16h 57m
- Merged PRs (30d)
- 102
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quarto-dev/quarto-cli
-
accessibility bug website-navigation
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
quarto-dev/quarto-cli#15190 ·
Maintainers usually reply within 1 day
-
Navbar dropdown toggles have `role="link"`Possibly taken @Mittalnew claimed this today. Openaccessibility bug website-navigation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
quarto-dev/quarto-cli#15188 · 1 comment ·
Maintainers usually reply within 1 day
-
accessibility bug html websites
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
quarto-dev/quarto-cli#15187 ·
Maintainers usually reply within 1 day
-
about-page bug layout websites
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
quarto-dev/quarto-cli#15178 ·
Maintainers usually reply within 1 day
-
Website projects ignore `$border-color` and `$border-radius` defaults because of an invalid `scss:variables` boundary in `quarto-listing.scss`Possibly taken @Don-Yin claimed this 1 day ago. Openbug websites
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
quarto-dev/quarto-cli#15176 ·
Maintainers usually reply within 1 day
All issues in quarto-dev/quarto-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Query Log shows "Upstream" for CNAME cloaking, schedule, NXDOMAIN hijack and response IP blocksOpenbug good first issue query-log web
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ferrous-networking/ferrous-dns#326 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Ylianst/MeshCentral#8294 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
yunaremaia/jsonl-cli#1 · 1 comment ·