fix: replace arbitrary spacing values with Tailwind scale equivalents (#201)#209
Merged
Merged
Conversation
…#201) Co-authored-by: Ona <no-reply@ona.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
✅ UI verification passed — design spec compliance confirmed. Static analysis — all checks pass:
Visual verification (Playwright screenshots on production):
|
Collaborator
Author
|
✅ Post-merge verification passed. E2E suite: 46/47 passed. The 1 failure ( Ad-hoc smoke tests:
Skipped:
|
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.
Closes #201
What
PR #197 introduced
min-h-[44px]andmin-w-[44px]arbitrary Tailwind values inemoji-picker.tsxandpage-icon.tsxwhere exact scale equivalents exist. The design spec requires using the Tailwind spacing scale instead of arbitrary values when a match is available.How
Replaced all
min-h-[44px]/min-w-[44px]withmin-h-11/min-w-11(11 × 4px = 44px). Three occurrences across two files:emoji-picker.tsx: emoji button classNamepage-icon.tsx: page icon button classNamepage-icon.tsx: "Add icon" button classNameTesting
Updated the existing static analysis tests in
emoji-picker-design-spec.test.tsto assert the Tailwind scale classes (min-h-11,min-w-11) and reject the arbitrary equivalents (min-h-[44px],min-w-[44px]). All 222 unit tests pass. No visual change —min-h-11computes to the same 44px value.