Skip to content

Keerthana - Migrate component styles from global CSS to CSS Modules#4952

Open
KeerthanaChitturi wants to merge 4 commits intodevelopmentfrom
Keerthana-css-module-refactor
Open

Keerthana - Migrate component styles from global CSS to CSS Modules#4952
KeerthanaChitturi wants to merge 4 commits intodevelopmentfrom
Keerthana-css-module-refactor

Conversation

@KeerthanaChitturi
Copy link

@KeerthanaChitturi KeerthanaChitturi commented Mar 6, 2026

Description
Refactored the styling of several components to use CSS Modules instead of global CSS.
This change scopes styles locally to each component and helps prevent global CSS conflicts.

Implements WBS: CSS → CSS Modules Refactor.

Main changes explained
Converted global CSS files to CSS Modules
Renamed the following files:

  • src/components/TaskEditSuggestions/TaskEditSuggestions.css → TaskEditSuggestions.module.css
  • src/components/Projects/WBS/WBSDetail/Task/tagcolor.css → tagcolor.module.css
  • src/components/UserProfile/TimeOffRequestsTable/TimeOffRequestsTable.css → TimeOffRequestsTable.module.css
  • src/components/SetupProfile/SetupProfile.css → SetupProfile.module.css

Updated component files

Updated the following components to import and use CSS modules:

  • TaskEditSuggestions.jsx
  • Task.jsx
  • TimeOffRequestsTable.jsx
  • SetupProfile.jsx

Updated class references
Replaced global className usage with module-based references:
className="example-class"
to
className={styles.exampleClass}

How to test
1: Checkout this branch
git checkout Keerthana-css-module-refactorZ
2: Install dependencies
npm install
3: Run the project
npm run dev
4:Clear browser cache / site data
5. Navigate to the following pages
Task Edit Suggestions
Dashboard → Tasks → Task Edit Suggestions
Verify that:

  • The page layout remains unchanged
  • The title and refresh button layout appear correctly
  • Styling works correctly in both light mode and dark mode

Time Off Requests Table
Dashboard → User Profile → Time Off Requests
Verify that:

  • Table layout renders correctly
  • Icons and buttons appear properly
  • Styling works in light and dark mode

Setup Profile Page

Open:
http://localhost:5173/setupprofile/

Example:
http://localhost:5173/setupprofile/testtoken

Verify that the page renders correctly and styling loads properly

Screenshots or videos of changes

No visual change expected.
This refactor only scopes the CSS locally using CSS Modules while preserving the existing layout and styling.

@netlify
Copy link

netlify bot commented Mar 6, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 6d16f67
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69ab5dc135a7df00086f3944
😎 Deploy Preview https://deploy-preview-4952--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

@KeerthanaChitturi KeerthanaChitturi changed the title Refactor: Convert TaskEditSuggestions CSS to CSS Module Migrate component styles from global CSS to CSS Modules Mar 6, 2026
@one-community one-community changed the title Migrate component styles from global CSS to CSS Modules Keerthana - Migrate component styles from global CSS to CSS Modules Mar 6, 2026
Copy link

@rohanrastogi311 rohanrastogi311 left a comment

Choose a reason for hiding this comment

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

Hi Keerthana,

Setup profile url is not functional.

Image Image Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants