Skip to content

fix(desktop): use theme shadows on the table toolbar and drag ghost - #4305

Merged
LHagfoss merged 2 commits into
mainfrom
fix/desktop-dead-shadow-classes
Nov 24, 2026
Merged

LHagfoss merged 2 commits into
mainfrom
fix/desktop-dead-shadow-classes

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

index.css resets --shadow-* and declares only shadow-1, shadow-2 and shadow-knob, so two Tailwind defaults generated no CSS:

  • apps/desktop/src/ui/Markdown.tsx:183: the table copy toolbar's shadow-sm is now shadow-1.
  • apps/desktop/src/ui/HeaderButtonsSetting.tsx:301: the header-button drag ghost's shadow-lg is now shadow-2 (it floats).

design.test.ts now reads the theme's shadow names from index.css and fails on any other shadow-* class (shadow-none is allowed). An @shadcn/lint trial (no-unknown-classes) found both. We are not adopting it: design.test.ts already covers its other rules, and through Oxlint it took 3.2 s against Biome's 1.3 s.

Changelog

Markdown table toolbars and dragged header buttons get their shadow back.

Testing

bun run check passes (3231 tests). With the two UI fixes reverted, the new guard flags exactly those two lines.

index.css resets --shadow-*, so shadow-sm and shadow-lg generated no CSS.
design.test.ts now rejects any shadow class the theme does not declare.
@github-actions github-actions Bot added the fix A bug fix label Nov 24, 2026
@LHagfoss
LHagfoss merged commit 871369d into main Nov 24, 2026
9 checks passed
@LHagfoss
LHagfoss deleted the fix/desktop-dead-shadow-classes branch November 24, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants