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

Styles are applied twice #230

Open
K20shores opened this issue Jan 16, 2024 · 0 comments
Open

Styles are applied twice #230

K20shores opened this issue Jan 16, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@K20shores
Copy link
Collaborator

K20shores commented Jan 16, 2024

Describe the bug
At least on the dev server, several styles are loaded twice on the site.

To Reproduce
Steps to reproduce the behavior:

  1. Run the local dev server (npm run dev)
  2. Go the the mechanisms page
  3. Right click on the M species and inspect its styles
  4. See styles applied twice

Expected behavior
Styles are only loaded once. They are currently loaded twice because the global.css file is imported in several of our other stylesheets which is incorrect (as identified in #229).

We probably need to rethink our css setup. I thought they were setup as modules so that conflicts wouldn't occur, but that doesn't seem to be the case. Either way, the global.css styles shouldn't be imported in other style sheets

Screenshots

Screenshot 2024-01-16 at 10 57 10 AM
@K20shores K20shores added bug Something isn't working good first issue Good for newcomers labels Jan 16, 2024
@K20shores K20shores added this to the Tech Debt milestone Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant