Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luci-base: view: make checkboxes and radio buttons styleable #663

Merged
merged 1 commit into from
Dec 10, 2016

Conversation

neocturne
Copy link
Member

Add an empty, normally invisible label after checkboxes and radio buttons
with cbi-input-{checkbox,radio} classes to allow CSS styling them as
suggested on http://www.paulund.co.uk/style-checkboxes-with-css

This is another patch we've been carrying in Gluon for some time, allow us to get the nice styled checkboxes in our config mode theme ( https://kbu.freifunk.net/wiki/images/thumb/a/ad/Gluon-config-welcome.png/800px-Gluon-config-welcome.png ).

I've extended our patch to add such an label for all instances of cbi-input-{checkbox,radio} (I hope I didn't miss any...) I also moved two "id" attributes from enclosing s to an element to allow referencing the from the added labels, but I didn't understand why those s had ids in the first place, so I hope my changes don't break anything.

Add an empty, normally invisible label after checkboxes and radio buttons
with cbi-input-{checkbox,radio} classes to allow CSS styling them as
suggested on http://www.paulund.co.uk/style-checkboxes-with-css

Signed-off-by: Nils Schneider <nils@nilsschneider.net>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
@danielfdickinson danielfdickinson self-assigned this Dec 9, 2016
@danielfdickinson
Copy link
Contributor

Pull into my test branch to verify nothing breaks.

@danielfdickinson
Copy link
Contributor

No issues in my build and run test, looks fine, and no comments for many months. Merging.

@danielfdickinson danielfdickinson merged commit c5287ef into openwrt:master Dec 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants