Details
-
Bug
-
Resolution: Fixed
-
Major
-
6.2
-
None
-
Unknown
-
N/A
-
N/A
-
Description
In flamingo/less/forms.less file we are doing
input[type="radio"]:extend(.radio all), input[type="checkbox"]:extend(.checkbox all)
Although this seemed to be right the first time we used it, if you consult Bootstrap's documentation http://getbootstrap.com/css/#forms-controls you'll see that .checkbox class is supposed to be the parent of input [ type='checkbox'] and not just an additional class.
<div class="checkbox"> <label> <input type="checkbox" value=""> Option </label> </div>
This extend is affecting lots of issues created related to checkboxes and radios, see Related issues.
Solution:
- Remove the extend and start using the .checkbox class accordingly
- Since we are following .xform standard for most of our forms http://platform.xwiki.org/xwiki/bin/view/DevGuide/VerticalForms I propose we add the .checkbox class to the parent dd element
<dl> <dt>...</dt> <dd class="checkbox"> <label> <input type="checkbox" value=""> Option </label> </dd> <dl>
Attachments
Issue Links
- is duplicated by
-
XWIKI-10985 "Auto refresh" option is not aligned with its check box
- Closed
- is related to
-
XWIKI-11287 Radio button with Bootstrap classes don't display well when inside xform class
- Closed
-
XWIKI-10557 Small alignment issues for radio buttons and checkboxes on rights
- Closed
-
XWIKI-11045 The "Configuration" options from Users are not styled corectly on ie9
- Closed
- relates to
-
XWIKI-10537 Improve the display of Administration -> Import on Flamingo
- Closed
-
XWIKI-10920 Document checkboxes aren't fully visible when trying to import a XAR on Flamingo
- Closed
-
XWIKI-10885 "Hidden document" is not perfectly aligned with its checkbox
- Closed