jdtcn / BlazorDateRangePicker

A Blazor component for choosing date ranges and dates
MIT License
182 stars 35 forks source link

New CSS isolation no longer works with dark theme #98

Closed steebn closed 6 months ago

steebn commented 7 months ago

In the new CSS isolation file you are hardcoding a background of #fff. Before it was using bootstrap variables that would change with a dark theme.

v4.5: image

v5.0+ image

jdtcn commented 7 months ago

Hi, I didn't change the styles and styles didn't use bootstrap variables before, the only thing I think might have changed is the order of css loading on your page, because before you had to add css manually and now it is added to the bandle automatically. Please make sure that the dark theme styles are loaded after the calendar styles

steebn commented 6 months ago

My mistake, I thought you were using the bootstrap variables that are built in Bootstrap v5.3.0. I forgot that I created a css override file that I changed out the colors to the Bootstrap variables. I'll try and figure out a way to win the cascade.