Table of contents: read block tokens instead of Tailwind and Quanta colors
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 74/100
Research direction
Start in packages/plate/styles/content.css and inspect @plone/theming tokens to choose fallbacks for the two table-of-contents colors. Read docs/how-to-guides/style-blocks-in-a-theme.md for how tokens are documented, then check the visual tests. Done means both rules use block tokens with theme-token fallbacks, the new tokens are listed in the guide, and the visual tests pass.
Written by the indexing model from the issue text.
Description
Two rules in packages/plate/styles/content.css (table of contents, #216) read design values directly instead of their own block tokens, so themes can't retune them the way they can the rest of the content:
| Rule | Reads | Used for |
|---|---|---|
.block-toc__empty |
var(--color-gray-500, oklch(55.1% 0.027 264.364)) |
The "Create a heading…" message |
.block-toc__highlight |
var(--color-quanta-sapphire, #0b78d0) at 13% |
The highlight on a heading after jumping to it |
--color-gray-500 is a Tailwind palette value, and --color-quanta-sapphire is a Quanta (CMS UI) value. Neither belongs in content styles that themes without Tailwind or Quanta must be able to set.
To do:
- Read block tokens with the current values as fallbacks, for example
var(--block-toc-empty-color, var(--muted-foreground))andvar(--block-toc-highlight-color, …). - Pick fallbacks from
@plone/theming's tokens. - List the new tokens in
docs/how-to-guides/style-blocks-in-a-theme.md.
Reusing a theme token as the fallback may change the color slightly, so check the visual tests.
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 9
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 54
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 plone/aurora
-
01 type: bug 41 lvl: easy
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11yOpen01 type: bug 99 tag: UX Accessibility
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 2 days
-
01 type: bug 30 needs: triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 2 days
-
01 type: bug 99 tag: UX Accessibility
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
01 type: bug 30 needs: triage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 2 days
Similar issues
-
accessibility bug dark-mode dashboards
Difficulty 1/5 Under an hour Newbie friendliness 84/100
quarto-dev/quarto-cli#15447 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
521xueweihan/HelloGitHub#4655 ·
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
bug CRIT-3
Difficulty 1/5 Under an hour Newbie friendliness 70/100
NASA-AMMOS/anms#426 ·