blazorbootstrap
blazorbootstrap copied to clipboard
Modal does not obey data-bs-theme
when opening a Modal the header is drawn in light mode even if you have data-bs-theme="dark" set
To Reproduce Steps to reproduce the behavior:
- Create a new project using Bootstrap Blazor
- Set data-bs-theme="dark"
- Create a Modal
- Open Modal
- See error
Expected behavior Should be Dark!.
Versions (please complete the following information):
- BlazorBootstrap: 1.10.5
- Blazor WebAssembly
- .NET Version: 8
Desktop (please complete the following information):
- OS: Windows 11
- Browser: edge
- Version 122.0.2348.0 (Official build) stable app, dev channel (64-bit)
Can confirm this.
As a workaround you can set ModalType="ModalType.Dark"
@gvreddy04 I took another look on this and added a PR to fix this.