Open pkgadd opened 4 years ago
FYI, just came across this as well (luci-app-advanced-reboot), seeing the same thing here. Thanks!
Also in luci-app-commands.
Also seeing this same behavior.
We have to add btn
css class to all button input html sections.
<input class="btn cbi-button ...." type=....>
I can confirm that this indeed works for both luci-app-advanced-reboot and luci-app-wireguard, thanks a lot.
Yep, works here as well - thanks! Are there plans to get these changes generically added in? Or make the needed changes, and submit PR's?
Thanks again.
Could someone explain how to:
We have to add
btn
css class to all button input html sections.<input class="btn cbi-button ...." type=....>
I am seeing this also in VPN-Policy-Routing and would like to take care of it, please?
Could someone explain how to:
We have to add
btn
css class to all button input html sections.<input class="btn cbi-button ...." type=....>
I am seeing this also in VPN-Policy-Routing and would like to take care of it, please?
In luci-app-commands you see this flaw too.
@feckert @pkgadd @cybrnook sorry it disappeared from my radar last year. Most of my luci apps are fixed, VPR is pending merge of the principal package.
@feckert @pkgadd @cybrnook sorry it disappeared from my radar last year. Most of my luci apps are fixed, VPR is pending merge of the principal package.
Thanks Stan, take your time buddy 🥇
Don't worry, all the packages I've been using are fixed by now.
The rest will need to be reported and fixed as they get noticed, contrary to the original belief the past fixes have shown that it's not a defect in the theme code, but that the individual luci apps need to declare the correct button styles..
I was able to fix locally while waiting for Stan's PR to merge, thanks for the hints guys!
LuCI base is transitioning towards using <button>
elements and providing an additional .btn
CSS class to style <input>
elements like buttons. Ideally - where possible - apps should replace <input class="btn cbi-button" value="Label" ...>
with just <button ...>Label</button>
. In cases where this is not feasible (e.g. non-JS legacy CBI forms where you need actual submit buttons) a simple class="btn"
should be sufficient.
LuCI base is transitioning towards using
<button>
elements and providing an additional.btn
CSS class to style<input>
elements like buttons. Ideally - where possible - apps should replace<input class="btn cbi-button" value="Label" ...>
with just<button ...>Label</button>
.
Is the <button>
element supported in 19.07 tree or just snapshots?
Hi
Using current OpenWrt/ master on ipq806x/ nbg6817 (also seen on ipq40xx/ map-ac2200)
I notice a strange rendering for the buttons used in
luci-app-wireguard
andluci-app-advanced-reboot
, all other buttons I've seen so far seem to work fine - and it's working nicely usingluci-theme-bootstrap
.The attached images have been made from firefox 74/ linux, but I'm seeing the same with chromium 81/ linux.