-
Notifications
You must be signed in to change notification settings - Fork 25
refactor: migrate font-size and line-height to tailwind #1091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bce1636 to
a397236
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates font-size and line-height styles from custom SCSS classes to Tailwind CSS utilities across the entire codebase. The migration replaces custom oc-text-* size classes with standardized Tailwind equivalents and removes related unused SCSS code.
- Replaces custom font-size classes (
oc-text-xsmall,oc-text-small, etc.) with Tailwind text utilities (text-xs,text-sm, etc.) - Updates line-height implementations to use Tailwind's
leading-*classes where needed - Removes obsolete SCSS font-size and line-height definitions from the design system
Reviewed Changes
Copilot reviewed 100 out of 100 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/web-runtime/tests/unit/components/Topbar/snapshots/UserMenu.spec.ts.snap | Updates test snapshots to reflect new Tailwind classes |
| packages/web-runtime/src/pages/ | Migrates error message font sizes in public/private link resolvers and 404 pages |
| packages/web-runtime/src/components/ | Updates component templates with new Tailwind text size classes |
| packages/web-pkg/tests/unit/components/ | Updates test snapshots for components using new text sizing |
| packages/web-pkg/src/components/ | Migrates component templates to use Tailwind text utilities |
| packages/web-app-files/src/components/ | Updates file management components with new text sizing |
| packages/web-app-admin-settings/src/components/ | Migrates admin interface components to Tailwind text classes |
| packages/design-system/src/ | Removes obsolete SCSS font-size definitions and adds Tailwind layer configurations |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
kulmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me (literally). 💪
refactor: migrate font-size and line-height to tailwind
Also removes some unused classes in the scss files.
Migration
oc-text-xsmall>text-xsoc-text-small>text-smoc-text-medium>text-baseoc-text-large>text-lgoc-text-xlarge>text-xlThe
line-heightgets determined by the giventext-class. However, it can also be adjusted separately via theleading-classes.refs #937