Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Customized Checkbox -- Associated With The Issue 571 on Webmaker-app #91

Closed
wants to merge 1 commit into from

Conversation

droxxr
Copy link
Contributor

@droxxr droxxr commented Dec 13, 2014

Updates:

  • This pull request includes the CSS code for the customized checkbox, which is used to replace the default browser's checkbox
  • Template modifications
  • Login template title case issue

Implementation note:

Fixes:

  • Replaced default checkbox with customized checkbox (it is bigger)
  • Checkbox is done completely in CSS & HTML
  • Added disabled state to checkbox
  • Added hover and focus states to checkbox
  • Supports indextab

screenshot - 14-12-12 - 11 29 18 pm

@gvn
Copy link
Contributor

gvn commented Dec 15, 2014

Hi @droxxr. Thanks for putting this patch together!

Since we're just looking to increase touch target size for checkboxes, a cleaner way to do this is to surround the checkboxes with DIVs that have some padding and then use JavaScript to make clicks on those DIVs toggle their child checkbox.

Would it be possible for you to refactor your patch to use this approach?

@droxxr
Copy link
Contributor Author

droxxr commented Dec 15, 2014

@gvn Just to clarify things, would this mean that I will not need to style or create a checkbox to replace the default browser checkbox? So, I would just need to keep the default browser checkbox, but do as you said, use JavaScript to make clicks on those DIVS [surrounding the checkbox] toggle their child checkbox. Does this mean that those DIVS are invisible around the default checkboxes?

@gvn
Copy link
Contributor

gvn commented Dec 15, 2014

Yep, indeed. 👍 Those divs would be invisible and just there to create a larger click target.

You can maintain the current browser checkbox style as is...

@gvn
Copy link
Contributor

gvn commented Dec 16, 2014

Actually, @droxxr , I see that you have a patch open for Webmaker App that creates larger checkboxes. Getting that landed in webmaker-login-ux would benefit all of our apps instead of just Webmaker App.

Can you open a PR here on webmaker-login-ux with the changes you made in mozilla/webmaker-android#621 ?

@droxxr
Copy link
Contributor Author

droxxr commented Dec 17, 2014

@gvn phew.. I'm glad I don't have to go through the process of doing it in JavaScript ;) Sure, I'll make a pull request.

Just to clarify things. Right now, I have a pull request for webmaker-app that contains the CSS code for the larger checkbox (currently in webmaker-app -> fixed -> styles -> login.less).

So, you want me to move this CSS code over to webmaker-login-ux (specfically webmaker-login-ux -> src -> less -> webmakerLogin.less)?

@gvn
Copy link
Contributor

gvn commented Dec 17, 2014

@droxxr Yes, it would be ideal if you can move your changes upstream to webmaker-login-ux so all our apps can share the benefits! Thank you for your patience. 👍

@droxxr
Copy link
Contributor Author

droxxr commented Dec 18, 2014

@gvn I moved all the changes upstream to webmaker-login-ux, in my latest commit (https://github.com/droxxr/webmaker-login-ux/tree/issue%23571-webmaker-app) and also made minor adjustments to it. Please let me know if you would prefer a new pull request instead and of any other problems. Thanks.

@droxxr droxxr changed the title Template Modification for Customized Checkboxes -- Issue 571 (Webmaker-app) Dependancy Customized Checkbox -- Associated With The Issue 571 on Webmaker-app Dec 18, 2014
@gvn
Copy link
Contributor

gvn commented Dec 18, 2014

Thanks! This looks great. I did a rebase for you so that we can land your patch (there were some conflicts with the committed built files, which I resolved).

I merged via #100

Closing this ticket.

@gvn gvn closed this Dec 18, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants