Opened 8 years ago
Closed 7 years ago
#46093 closed defect (bug) (fixed)
User profile checkbox margin issue.
| Reported by: | punit5658 | Owned by: | afercia |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2 |
| Component: | Users | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | accessibility, administration |
Attachments (7)
Change History (11)
#1
@
8 years ago
- Focuses accessibility added
- Keywords needs-refresh added; needs-testing removed
- Milestone Awaiting Review → 5.2
- Owner set to
- Status new → assigned
- Version trunk → 3.3
@punit5658 thanks for your report. This is an interesting case.
As you've noticed, the markup is different. The "Show Toolbar when viewing site" checkbox is wrapped in a <fieldset> element (with a legend) even if it's only one checkbox. Instead, <fieldset> should only be used to group a set of related form controls together.
Turns out a few years ago, when the toolbar was still called "Admin Bar", there were two checkboxes (see attached screenshot). Then, in [18700] this option was simplified to have only one checkbox. However, the fieldset and legend survived to that change.
As there's now no reason to use a <fieldset> and a <legend>, I'd suggest to simply remove them instead of changing the CSS. This would also solve the margin issue in the mobile view.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)




Image 1 - Spacing issue between label and checkbox