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

Allow associating CSS class(es) with a router outlet #250

Open
danielwiehl opened this issue Oct 3, 2023 · 0 comments
Open

Allow associating CSS class(es) with a router outlet #250

danielwiehl opened this issue Oct 3, 2023 · 0 comments
Projects

Comments

@danielwiehl
Copy link
Collaborator

danielwiehl commented Oct 3, 2023

Is your feature request related to a problem? Please describe.

The SCION Workbench integrates microfrontends in different places, such as views and overlays. The microfrontends have a different background color depending on where they are embedded. For example, in dark mode, the background color of overlays is slightly brighter, or views in the peripheral area have a different background color than views in the main area.

Describe the solution you'd like

The router outlet should provide API to associate CSS class(es) with the embedded microfrontend, enabling a microfrontend to apply styles based on its embedding context. The CSS class(es) should be set on the HTML root element of the microfrontend.

Describe alternatives you've considered

The application can set and evaluate CSS classes via context values. However, the CSS classes must be received and set by each microfrontend. Therefore, setting CSS classes should be built into the platform.

@danielwiehl danielwiehl added this to Triage in SCION via automation Oct 3, 2023
@k-genov k-genov changed the title Allow associating CSS variable(s) with a router outlet Allow associating CSS class(es) with a router outlet Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
SCION
  
Triage
Development

No branches or pull requests

1 participant