Page MenuHomePhabricator

docs: VitePress demo shows wrong token sizes due to fixed px value
Closed, ResolvedPublic1 Estimated Story Points

Description

Background

VitePress and it's Accessibility breaker again. Since the update (?) the size tokens don't show the real value, as .vp-doc td is set to 14px straight.
It's basically a legacy presentation in the normal theme.

image.png (868×1 px, 156 KB)

Goal

Overwrite the pixel value to have for example size-100 token show a 16x16 square by default.

Acceptance criteria for done

  • Change the selector in our own styles in order to make the presentation correct and scalable

Event Timeline

Restricted Application triaged this task as High priority. · View Herald TranscriptMay 8 2023, 9:08 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 917408 had a related patch set uploaded (by VolkerE; author: VolkerE):

[design/codex@main] docs: Use relative sizes for th/td and fix token demo presentation

https://gerrit.wikimedia.org/r/917408

Change 917408 merged by jenkins-bot:

[design/codex@main] docs: Use relative sizes for th/td and fix token demo presentation

https://gerrit.wikimedia.org/r/917408

Change 918598 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[mediawiki/core@master] Update Codex from v0.9.1 to v0.10.0

https://gerrit.wikimedia.org/r/918598

Test wiki created on Patch demo by ATomasevich (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/8333e57f25/w

Test wiki on Patch demo by ATomasevich (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/8333e57f25/w/

Change 918598 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.9.1 to v0.10.0

https://gerrit.wikimedia.org/r/918598

Volker_E claimed this task.
Volker_E updated the task description. (Show Details)