Skip to content

Conversation

@AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Aug 28, 2025

refs #937

Migration

  • oc-position-relative > relative
  • oc-position-fixed > fixed
  • oc-position-absolute > absolute
  • oc-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-0

The transform might not be necessary, depends on the situation.

@JammingBen JammingBen force-pushed the tailwind-position-classes branch from 1a3a8bc to ed31885 Compare September 1, 2025 10:57
@JammingBen JammingBen marked this pull request as ready for review September 1, 2025 11:43
Copy link
Contributor

Copilot AI left a 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-center to 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.

@JammingBen JammingBen requested a review from kulmann September 2, 2025 09:17
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 🥇

@JammingBen JammingBen merged commit ee0ed3e into main Sep 2, 2025
28 checks passed
@JammingBen JammingBen deleted the tailwind-position-classes branch September 2, 2025 11:31
@openclouders openclouders mentioned this pull request Sep 2, 2025
1 task
openclouders pushed a commit that referenced this pull request Sep 2, 2025
chore: adjust position css props to tailwind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants