-
Notifications
You must be signed in to change notification settings - Fork 25
refactor: tailwind spacings #1082
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
c93c6ee to
e8546af
Compare
ccb831f to
9c87de6
Compare
cb4a0ff to
8315972
Compare
Some could be removed completely because those are already being handled via the Tailwind preflight. Others are now implemented via utility classes. A few of them need to stay as they are because they overwrite styles from vendors e.g.
Removes unnecessary margins and a few unused classes, migrates the rest to either utility classes or layers. A few rare occasions can still be found, they will either be resolve later, or are necessary because they overwrite e.g. vendor styles.
Removes unnecessary paddings and a few unused classes, migrates the rest to either utility classes or layers. A few rare occasions can still be found, they will either be resolve later, or are necessary because they overwrite e.g. vendor styles.
With tailwind, there is no need for this to be a dedicated component of the design-system. Just use tailwind classes if you need a grid. It was only being used once (for whatever reason, it wasn't even necessary).
Gives icons a content box sizing to ensure they align well.
7f994db to
fa337a6
Compare
fa337a6 to
420bb7f
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 pull request refactors manual CSS spacing (margin and padding) throughout the codebase to use Tailwind utility classes. The goal is to migrate from custom CSS spacing properties to a standardized Tailwind-based approach while maintaining the existing visual appearance.
- Replaces manual
margin:andpadding:CSS with Tailwind utility classes - Updates test snapshots to reflect the new Tailwind class names
- Adds new breakpoint definitions to the Tailwind theme configuration
Reviewed Changes
Copilot reviewed 143 out of 144 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
packages/web-runtime/src/tailwind.css |
Added new breakpoint definitions for responsive design |
| Multiple test snapshots | Updated to reflect new Tailwind spacing classes in component outputs |
| Various Vue components | Replaced manual CSS spacing with Tailwind utility classes |
| CSS/SCSS files | Removed manual spacing rules in favor of Tailwind utilities |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
To ensure they can be overwritten with utility classes.
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.
Thank you 🥇
…ailwind refactor: tailwind spacings
Migrates manual spacings via
margin:andpadding:to either Tailwind utility classes or CSS layers. Some could even be removed (especially setting them to 0 is often unnecessary now because the Tailwind preflight already sets them to 0).With this change, the spacings in the UI should look pretty much exactly like before Tailwind.
Also removes the
OcGridcomponent (not needed anymore) and introduces our mobile breakpoints in Tailwind.Best to review this by commits.
refs #937