1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wrap radio buttons and checkboxes

Discussion in 'XenForo Suggestions' started by CyberAP, Aug 11, 2016.

  1. CyberAP

    CyberAP Well-Known Member

    Checkboxes and radio buttons in XenForo don't have their own wrapper, so it's impossible to style them with another element. They have labels but these labels are not distinguished in any way. You can't tell if that's a label for checkbox, radio button, text input or anything else. So here is the suggestion:
    1. Give labels classes depending on contained input element type;
    2. Wrap radiobuttons and checkboxes so they can be styled with CSS.
    Divvens, jOOc, maszd and 5 others like this.
  2. CyberAP

    CyberAP Well-Known Member

    Still an issue in XF 2.0 demo.
  3. CyberAP

    CyberAP Well-Known Member

    Just a quick update on this. All radio buttons and checkboxes I've found in XF 2 were wrapped inside a <label>, so that simplifies the task. But these labels lack classes and with classes styling control elements would be no issue.

Share This Page