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-01 Fixes #4374 #4375

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

Conversation

Vaibhav701161
Copy link

@Vaibhav701161 Vaibhav701161 commented Feb 9, 2025

Fixes #4374

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.
Made it responsive

@Vaibhav701161 Vaibhav701161 changed the title Refactor: Moved inline styles to external CSS classes-01 Refactor: Moved inline styles to external CSS classes-01 Fixes #4374 Feb 9, 2025
@Vaibhav701161 Vaibhav701161 marked this pull request as ready for review February 10, 2025 10:40
@walterbender
Copy link
Member

Screenshot From 2025-02-11 16-20-36

@walterbender
Copy link
Member

That is Chromium on Fedora

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