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 us to style the components-reconnect-modal in Blazor #60546

Closed
1 task done
hades200082 opened this issue Feb 21, 2025 · 1 comment
Closed
1 task done

Allow us to style the components-reconnect-modal in Blazor #60546

hades200082 opened this issue Feb 21, 2025 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@hades200082
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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

Currently the components-reconnect-modal and it's children are styled by an explicit stylesheet embedded in the shadow-dom that the component uses.

This means that we can't override the styling of that modal from our own CSS.

Describe the solution you'd like

Simple option: Move the styling out of the shadow-dom into the Blazor template CSS so we can change/override it.

Bigger/better option: Place the whole component somewhere we can edit/override in our own projects so we can completely customise the components-reconnect-modal control.

Additional context

All I'm trying to do currently is change the fonts, background and text colours of the modal in line with the users chosen "prefers-dark-mode" setting and my own branding. This would be enough for me, but a more customisable solution would be nice long-term.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Feb 21, 2025
@javiercn
Copy link
Member

@hades200082 thanks for contacting us.

We moved this code to the template in 10.0, which gives you full control over the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

2 participants