Dark theme: active sidebar item has no padding or border-radius
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Compare the sidebar rules in theme.scss (lines 96–116) with the active pill rules in theme-dark.scss (lines 94–101), then preview the Quarto theme in light and dark modes. Add the missing sidebar spacing and border-radius rules to the dark stylesheet; done when the active item has consistent padding, alignment, and rounded corners in both previews.
Written by the indexing model from the issue text.
Description
Problem
In dark mode, the active sidebar item may have no padding, so its text can touch the 1px outline. The item can also align differently than in light mode.
Quarto compiles the light theme and the dark theme as separate stylesheets (_extension.yml sets light: [theme.scss, ...] and dark: [theme-dark.scss, ...]). theme-dark.scss does not import theme.scss.
theme.scss(lines 96–116) gives.sidebar-navigation .sidebar-item-container > .sidebar-item-textand the active pillpadding: 0.2rem 0.5rem,margin-left: -0.5rem, andborder-radius: 5px.theme-dark.scss(lines 94–101) sets onlycolor,background-color, and an insetbox-shadowon the active pill. It has no padding, margin, or border-radius rules for the sidebar.
Found in v8.1.4. The same code is on main.
Suggested fix
Copy the .sidebar-navigation .sidebar-item and .sidebar-item-text rules from theme.scss to theme-dark.scss. Also add padding, margin, and border-radius to the dark active pill. Then compare the sidebar in a light-mode and a dark-mode preview.
Found by an automated review of docs.rstudio.com, which uses v8.1.4.
- Dominant language
- SCSS
- Stars
- 6
- Forks
- 5
- Avg merge
- 8h 10m
- Merged PRs (30d)
- 8
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 posit-dev/product-doc-theme
-
accessibility bug CSS - Styles
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/product-doc-theme#216 ·
Maintainers usually reply within 1 day
-
accessibility bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
posit-dev/product-doc-theme#214 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
posit-dev/product-doc-theme#194 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
posit-dev/product-doc-theme#213 ·
Maintainers usually reply within 1 day
-
Fix WCAG AA contrast failures and brand deviations in the themePossibly taken @sarahsdao claimed this 16 days ago. Open
posit-dev/product-doc-theme#211 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in posit-dev/product-doc-theme
Similar issues
-
frontend level2 nsoc26
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Riya-Kharade/PetSathi#402 ·
Maintainers usually reply within 1 day
-
[Icon] 增加闪电图标Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Tencent/tdesign-icons#330 · 1 comment ·
-
icon request
Difficulty 1/5 Under an hour Newbie friendliness 85/100
PapirusDevelopmentTeam/papirus-icon-theme#4401 ·
Maintainers usually reply within 3 days
-
category:ai icon-request icons triage:invalid-svg
Difficulty 1/5 Under an hour Newbie friendliness 67/100
glincker/thesvg#1682 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
vorssaint/vorssaint-utils#4751 ·
Maintainers usually reply within 2 days