blazorbootstrap icon indicating copy to clipboard operation
blazorbootstrap copied to clipboard

Modal does not obey data-bs-theme

Open daveclarkit opened this issue 5 months ago • 2 comments

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):

  • 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)

daveclarkit avatar Jan 22 '24 18:01 daveclarkit

Can confirm this.

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

MarvinKlein1508 avatar Jan 23 '24 08:01 MarvinKlein1508

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

MarvinKlein1508 avatar Mar 07 '24 09:03 MarvinKlein1508