-
Notifications
You must be signed in to change notification settings - Fork 25
chore: adjust position css props to tailwind #1130
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
99523af to
1a3a8bc
Compare
1a3a8bc to
ed31885
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 position-related CSS properties from custom OC design system classes to Tailwind CSS utilities. The migration systematically replaces custom position classes like oc-position-relative, oc-position-fixed, etc. with their equivalent Tailwind utilities such as relative, fixed, absolute, and more complex positioning combinations.
- Replaces custom OC position utility classes with standard Tailwind equivalents
- Migrates complex positioning like
oc-position-centerto Tailwind combinations using transforms - Updates both component files and their corresponding test snapshots
- Removes obsolete CSS rules from SCSS files after migration
Reviewed Changes
Copilot reviewed 73 out of 73 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/web-runtime/src/pages/*.vue | Updates login pages to use Tailwind absolute positioning |
| packages/web-runtime/src/layouts/Application.vue | Migrates progress bar and snackbar positioning |
| packages/web-runtime/src/components/Topbar/*.vue | Updates notification and topbar positioning |
| packages/web-runtime/src/components/SidebarNav/*.vue | Migrates sidebar navigation positioning |
| packages/web-runtime/src/components/SkipTo.vue | Updates skip link positioning |
| packages/web-pkg/src/components/**/*.vue | Comprehensive position class migration across components |
| packages/web-app-/src/**/.vue | Updates position classes in all web applications |
| packages/design-system/src/components/**/*.vue | Migrates design system component positioning |
| packages/design-system/src/styles/*.scss | Removes obsolete position CSS rules |
| **/*.snap | Updates test snapshots to reflect new Tailwind classes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
packages/design-system/src/components/OcNotifications/OcNotifications.spec.ts
Show resolved
Hide resolved
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.
nice 🥇
chore: adjust position css props to tailwind
refs #937
Migration
oc-position-relative>relativeoc-position-fixed>fixedoc-position-absolute>absoluteoc-position-center>absolute top-[50%] left-[50%] transform-[translate(-50%, -50%)]oc-position-center-right>absolute top-[50%] right-0 transform-[translateY(-50%)]oc-position-bottom-center>absolute left-[50%] bottom-0 transform-[translateX(-50%)]oc-position-cover>absolute inset-0The transform might not be necessary, depends on the situation.