Skip to content
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

Refactor: Moved inline styles to external CSS classes-02 #4454

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Vaibhav701161
Copy link

@Vaibhav701161 Vaibhav701161 commented Feb 23, 2025

Fixes #4374

image

Description:
This PR refactors palette.js by migrating inline styles to external CSS classes. The changes improve maintainability, reusability, and adherence to best practices by separating concerns between JavaScript and styling.

Changes Made:
Removed inline styles applied using element.setAttribute("style", "...").
Introduced appropriate CSS classes in the stylesheet.
Updated palette.js to use classList.add() instead of inline styles.

Copy link

✅ All Jest tests passed! This PR is ready to merge.

@walterbender
Copy link
Member

Did you test this? The palettes don't appear for me in Firefox.

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.

Issue: Refactor Inline Styles to External CSS/SCSS for Maintainability
3 participants