You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Many components have CSS inside their .tsx file. These should be moved to their own .css files. e.g. client/src/components/ColouredButton/ should contain:
ColouredButton.test.tsx
ColouredButton.tsx
ColouredButton.css
The text was updated successfully, but these errors were encountered:
Do you want this as .css file instead of a .style.js file? It looks like components are using React style props instead of actual CSS and would cause more refactoring than just moving the styles to their own file.
@Jacoberson ideally it would be great if we could have them as separate css files.
But so long as the styles are moved into separate files that should be fine. So I am happy with either style.js or css, depends how much refactoring you wish to do!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Request - Move CSS styles to own files
Describe the feature
Many components have CSS inside their
.tsx
file. These should be moved to their own.css
files. e.g.client/src/components/ColouredButton/
should contain:ColouredButton.test.tsx
ColouredButton.tsx
ColouredButton.css
The text was updated successfully, but these errors were encountered: