backdrop-contrib / bootstrap5_lite

GNU General Public License v2.0
2 stars 6 forks source link

Bootswatch theme settings page does not show current bootswatch theme selected #27

Closed rayjamesdev closed 1 year ago

rayjamesdev commented 1 year ago

When going to theme settings -> Bootswatch Theme tab, it does not show which Bootswatch Theme is currently selected.

Steps to reproduce:

Additionally, after selecting a Bootswatch theme, there is no option to go back to whatever the theme was after fresh install. Thanks for your time.

izmeez commented 1 year ago

I also find this confusing. User can click to select a Bootswatch theme but not unselect it with ctrl-click (or whatever a mobile equivalent might be). I wondered if this has to do with the first option being "Default Pure Bootstrap CSS" and needing to click that. If that is the case it would be useful to have that set by default and to have the currently selected theme visible marked when returning to the page.

Also a reset default option might help.

And adding a tool tip on hover over the radio box "click to select" may be a further help.

izmeez commented 1 year ago

Turns out I was mistaken, selecting "Default" does not return to "none" so the OP is correct, there is no way to revert to the local "fresh" install theme.

izmeez commented 1 year ago

The only solution is to disable the theme and enable it again to reset all settings.

bugfolder commented 1 year ago

I think the problem is that the theme setting for bootstrap5_lite_bootswatch is uninitialized, i.e., the .info file should contain

settings[bootstrap5_lite_bootswatch] = ""

That's why the "default" button appears unselected initially. It should be selected initially.

PR to follow.