-
Notifications
You must be signed in to change notification settings - Fork 25
refactor: font-weight and text-decoration to tailwind #1093
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
7ebda20 to
878d020
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 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.
d7fe322 to
5397016
Compare
5397016 to
8985574
Compare
8985574 to
bdfa8ed
Compare
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="{ |
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.
The text of contextual helpers is now bold. That looks weird. Was normal weight before.
refs #937
Migration
oc-font-semibold>font-semiboldoc-text-bold>font-semiboldSee here for the weight values: https://tailwindcss.com/docs/font-weight
For
text-decorationwe didn't have a utility class. When a decoration is needed on hover, just usehover:underline. Disabling the underline is usually not needed since this is already done via the tailwind preflight.