Closed elisechant closed 7 years ago
Sorry to get back to this so late @elisechant
Semantically I would not use superscript, but a span instead, and control the styling via vertical-align
, and adjusting it’s font size the same way.
If you do lower the font size don’t go under 14px.
Few egs from a quick play:
If there’s value in this I’d be glad to add these to the forms module for 2.x. Thoughts?
cc @lreichelt
conscious that it is incredibly annoying to do this when you've just closed the issue... I'm wondering, what is the user need for an optional field? I'd prefer our guidance to government was to not have optional fields. Why are we asking for information if we don't absolutely need it?
@lreichelt—
I'd prefer our guidance to government was to not have optional fields. Why are we asking for information if we don't absolutely need it?
Generally agree, and is similar to our current guidance on the subject.
We’ve been asked how to denote optional fields in the past. Our advice is to not ask that question then at all, and if you absolutely must:
If you have to ask for optional information mark the field labels with ‘(optional)’.
What I did
Creating optional form elements. Following the documentation that says:
Should I render "optional" like:
<label>Name (optional)</label>
or is there a recommended design pattern to do this?
What comes to mind is:
<label>Name <sup>(optional)</sup></label>