-
Notifications
You must be signed in to change notification settings - Fork 0
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
Single checkbox design consistency #5
Comments
This is tricky indeed. I like going for a two-radio-button solution as you proposed, but regardless of that we need to figure out how to deal with single checkboxes in general. I don't see a problem with a visual title (with |
I think we should try to figure this out for the initial prototype. I now agree that we should not support an extra title for a checkbox that already has a label. This should however involve reorganizing some of the fields into specific sections, because these checkbox fields without any heading look bad, as discussed before. The above screenshot is a positive example of what that can look like. |
I think for the most part, we only need to continue to follow the above pattern (do not provide an additional "title" for a checkbox) in regard of that ticket (see for example #28). As a general task to be able to close this ticket, I think we only need to do a single change: Instead of only setting the Does that sound good to you @afercia? |
@karmatosed The discussion here is only about the semantics. I already made the checkbox label normal font-weight in #32, and will make the actual field titles bold (see #33). The text "Membership" however will not be part of the field itself anymore, since the checkbox already has a label and "Membership" would be redundant, as discussed before. It will instead become its own section so that the text "Membership" still appears above the checkbox (see #29 for PR). |
For better readability, design consistency, and typography, any field in the Settings pages uses some bold text before the field. This also helps while visually scanning the page.
Text fields, textareas, selects, etc. can use their associated label as "bold text" before the fields.
Radio buttons are always more than 1 and when grouped in a
<fieldset>
element, they can use the fieldset<legend>
element as "bold text". Same goes for checkboxes when more than one.Single checkboxes instead don't have any semantic element that can be used as a "bold text" before the checkbox. Their associated label is on the right and must stay on the right.
We should explore what the best option is. Is it acceptable to print out some text that is used just for visual purposes (hidden from assistive technologies with
aria-hidden="true"
)? Would that be easy to understand for people going to use the Settings API? Would it be abused?Screnshot to illustrate the issue:
Worth nothing in this specific case the checkbox and the "New User Default Role" select are actually logically related, thus they should be within a
<fieldset>
so the text "Membership" (maybe consider a better wording? ) could be a<legend>
. There are other cases where this is not the case though, and the issue stands.Worth also considering that the "Anyone can register" checkbox and the "New User Default Role" select aren't so strictly related to "General settings" and probably should go in a "Membership settings" section/page. This wouldn't solve the issue of the "bold text" though.
Personally, I think single checkboxes are always a bit tricky and maybe worth exploring if this kind of setting can use a different control. Comparing with the multisite settings, there are 4 registration options, where one of them is "Registration is disabled".
So there's some inconsistency with the registration setting on a single site installation. For analogy then, maybe single site should use two radio buttons?
The text was updated successfully, but these errors were encountered: