For example, the following Less would apply on light, auto light and auto dark mode, when you'd expect it to only run in light and auto light mode:
#app when (@config-dark-mode = false) {
display: none;
}
This is because the light and dark stylesheets are applied when in auto mode instead of only the applicable stylesheet. This was introduced in 6e683ea30d5a6988f12c982bcdeb89872b9196eb.
Confirmed
[ ] Frontend changes: tested on a local Flarum installation.
[ ] Backend changes: tests are green (run composer test).
Changes proposed in this pull request:
@config-dark-mode
doesn't always act as expected.For example, the following Less would apply on light, auto light and auto dark mode, when you'd expect it to only run in light and auto light mode:
This is because the light and dark stylesheets are applied when in auto mode instead of only the applicable stylesheet. This was introduced in 6e683ea30d5a6988f12c982bcdeb89872b9196eb.
Confirmed
composer test
).