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

Elements of the MatPortalHost are not themed by a MatThemeProvider #920

Open
Qubitza opened this issue Oct 27, 2021 · 0 comments
Open

Elements of the MatPortalHost are not themed by a MatThemeProvider #920

Qubitza opened this issue Oct 27, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Qubitza
Copy link

Qubitza commented Oct 27, 2021

Placing a MatPortalHost into a MatThemeProvider doesn't apply the defined MatTheme on dialog elements (e.g. the popup of a DatePicker)

To Reproduce
Place a MatPortalHost into a MatThemeProvider and apply a theme.
The generated div when opening the DateTime dialog will not be themed, as the class does not include the matBlazor_theme_*.

Blazorfiddle link
https://blazorfiddle.com/s/oe3258v9
Somehow, the fiddle did not work on my machine. However, you can see the code.

Expected behavior
The generated theme class (e.g. matBlazor_theme_2f29a5a8-9fda-4b2e-9332-9eb2089efe1c in the screenshot) is applied to elements which are created by the MatPortalHost.

Screenshots
image

@Qubitza Qubitza added the bug Something isn't working label Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant