Repository navigation
fix(desktop): use theme shadows on the table toolbar and drag ghost - #4305
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
index.cssresets--shadow-*and declares onlyshadow-1,shadow-2andshadow-knob, so two Tailwind defaults generated no CSS:apps/desktop/src/ui/Markdown.tsx:183: the table copy toolbar'sshadow-smis nowshadow-1.apps/desktop/src/ui/HeaderButtonsSetting.tsx:301: the header-button drag ghost'sshadow-lgis nowshadow-2(it floats).design.test.tsnow reads the theme's shadow names fromindex.cssand fails on any othershadow-*class (shadow-noneis allowed). An@shadcn/linttrial (no-unknown-classes) found both. We are not adopting it:design.test.tsalready 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 checkpasses (3231 tests). With the two UI fixes reverted, the new guard flags exactly those two lines.