vikramlearning / blazorbootstrap

An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.
https://docs.blazorbootstrap.com/
Apache License 2.0
670 stars 32 forks source link

Modal does not obey data-bs-theme #522

Open daveclarkit opened 7 months ago

daveclarkit commented 7 months ago

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:

  1. Create a new project using Bootstrap Blazor
  2. Set data-bs-theme="dark"
  3. Create a Modal
  4. Open Modal
  5. See error

Expected behavior Should be Dark!.

image

Versions (please complete the following information):

Desktop (please complete the following information):

MarvinKlein1508 commented 7 months ago

Can confirm this.

As a workaround you can set ModalType="ModalType.Dark"

MarvinKlein1508 commented 6 months ago

@gvreddy04 I took another look on this and added a PR to fix this.