Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Aug 19, 2025

refs #937

Migration

  • oc-font-semibold > font-semibold
  • oc-text-bold > font-semibold

See here for the weight values: https://tailwindcss.com/docs/font-weight

For text-decoration we didn't have a utility class. When a decoration is needed on hover, just use hover:underline. Disabling the underline is usually not needed since this is already done via the tailwind preflight.

@JammingBen JammingBen self-assigned this Aug 19, 2025
@JammingBen JammingBen changed the title Refactor/font weight tailwind refactor: font-weight to tailwind Aug 19, 2025
@JammingBen JammingBen changed the title refactor: font-weight to tailwind refactor: font-weight and text-decoration to tailwind Aug 19, 2025
@JammingBen JammingBen force-pushed the refactor/font-weight-tailwind branch from 7ebda20 to 878d020 Compare August 19, 2025 09:26
@JammingBen JammingBen marked this pull request as ready for review August 19, 2025 10:42
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 pull request refactors font-weight and text-decoration utilities from custom CSS classes to Tailwind CSS utilities. The migration focuses on replacing custom utilities like oc-font-semibold and oc-text-bold with standard Tailwind classes such as font-semibold and font-bold, while also removing custom text-decoration styles in favor of Tailwind's hover:underline utility.

Key Changes

  • Migration of font-weight utilities from custom CSS classes to Tailwind equivalents
  • Replacement of custom text-decoration styles with Tailwind's hover utilities
  • Updates to design system components and application code to use standardized Tailwind classes

Reviewed Changes

Copilot reviewed 65 out of 65 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/design-system/src/styles/theme/oc-text.scss Removes default text-decoration from anchor tags
packages/design-system/src/components/OcTableTh/OcTableTh.vue Migrates font-weight styling to Tailwind utilities
packages/design-system/src/components/OcTable/OcTable.vue Adds hover:underline class to sort buttons
packages/web-pkg/src/components/FilesList/ResourceName.vue Replaces custom hover text-decoration with Tailwind class
packages/web-runtime/src/App.vue Migrates mark-highlight styling to Tailwind utilities
Various test snapshots Updates test expectations to reflect new Tailwind class usage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@JammingBen JammingBen force-pushed the refactor/font-weight-tailwind branch from d7fe322 to 5397016 Compare August 20, 2025 12:53
@JammingBen JammingBen force-pushed the refactor/font-weight-tailwind branch from 5397016 to 8985574 Compare August 20, 2025 13:00
@JammingBen JammingBen force-pushed the refactor/font-weight-tailwind branch from 8985574 to bdfa8ed Compare August 20, 2025 13:00
@JammingBen JammingBen merged commit 902eff3 into main Aug 20, 2025
29 checks passed
@JammingBen JammingBen deleted the refactor/font-weight-tailwind branch August 20, 2025 13:15
@openclouders openclouders mentioned this pull request Aug 20, 2025
1 task
openclouders pushed a commit that referenced this pull request Aug 20, 2025
refactor: font-weight and text-decoration to tailwind
v-for="(item, index) in listItems"
:key="index"
:class="{ 'ml-0': !item.headline, 'first:mt-0': item.headline }"
:class="{
Copy link
Contributor

Choose a reason for hiding this comment

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

The text of contextual helpers is now bold. That looks weird. Was normal weight before.

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