havit / Havit.Blazor

Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
https://havit.blazor.eu
MIT License
475 stars 66 forks source link

[HxAlert] Add possibility to set color of the dismiss button #780

Closed crdo closed 4 months ago

crdo commented 5 months ago

Currently, the black version of the Close button is hardcoded as the HxAlert dismiss button. In some cases, the design requires the white variant that we cannot set right now.

image
hakenr commented 4 months ago

Can we use a color-scheme-aware CSS class that behaves automatically?

crdo commented 4 months ago

What we actually need is the attribute splatting on the HxAlert so we can put data-bs-theme="dark" on it.

hakenr commented 4 months ago

OK, will do.