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

[bug][docs]: Docs server not compiling component CSS #1807

Open
adamjohnson opened this issue Aug 30, 2024 · 3 comments
Open

[bug][docs]: Docs server not compiling component CSS #1807

adamjohnson opened this issue Aug 30, 2024 · 3 comments
Labels
bug Something isn't working needs prioritization This issue needs prioritization

Comments

@adamjohnson
Copy link
Collaborator

adamjohnson commented Aug 30, 2024

Describe the bug

If you visit a demo of any component on localhost:8080 and change that component's CSS, those changes are not reflected in the localhost:8080 demo.

They are reflected in the dev server (localhost:8000).

Steps to reproduce

  1. In your terminal, do a clean install of staging/clefairy or any branch off of clefairy.
  2. Type npm run start
  3. Visit http://localhost:8000/elements/badge/demo/
  4. Note the badges are styled.
  5. Delete all the CSS inside elements/rh-badge/rh-badge.css.
  6. Refresh http://localhost:8000/elements/badge/demo/. Note the lack of styles.
  7. Now visit the docs server: http://localhost:8080/elements/badge/demo/
  8. Note that, on the docs server with no CSS to style a badge, the badge still appears styled

You can follow these same steps with any component—not just badge.

Expected behavior

The docs server should watch and compile CSS changes to components so that you can view their demos.

Operating System (OS)

iOS, macOS, Linux, Windows

Browser

Chrome, Safari, Safari iOS, Microsoft Edge, Firefox

@bennypowers
Copy link
Member

Screencast.from.2024-09-19.14-10-48.mp4

@github-project-automation github-project-automation bot moved this from Backlog to Done ☑️ in Red Hat Design System Sep 19, 2024
@adamjohnson adamjohnson removed this from the 2024/Q3 — Clefairy release milestone Sep 19, 2024
@adamjohnson adamjohnson moved this from Done ☑️ to Backlog in Red Hat Design System Sep 19, 2024
@adamjohnson
Copy link
Collaborator Author

Looks like you're on the dev server (8000), not the docs server (8080).

This issue still exists in my testing on staging/clefairy.

@adamjohnson adamjohnson reopened this Sep 19, 2024
@github-project-automation github-project-automation bot moved this from Backlog to In Progress 🟢 in Red Hat Design System Sep 19, 2024
@adamjohnson adamjohnson moved this from In Progress 🟢 to Backlog in Red Hat Design System Sep 19, 2024
@bennypowers
Copy link
Member

Gotcha. Known issue. Huge headache. Maybe eleventy 3 will help (wishful thinking). Kicked to cubone, with apologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs prioritization This issue needs prioritization
Projects
Status: Backlog
Development

No branches or pull requests

2 participants