Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Seven theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Oct 2014 at 23:29 UTC
Updated:
22 Jan 2015 at 14:14 UTC
Jump to comment: Most recent, Most recent file




Comments
Comment #1
esod commentedComment #2
esod commentedComment #3
esod commentedSame patch. Added the issue number to its file name.
Comment #4
lewisnymanHi, thanks for the feedback. It was added during #1986418: Update textfield & textarea style so they labels align better with the inputs below them. I guess in your example the input isn't aligned under the label. I'm not sure what to do in this situation.
Changing status to works as designed just for cleanliness, feel free to reopen if you want to continue discussion.
Comment #5
esod commentedOMG that's a lot to read. ;) Starting with comment #211 in
https://www.drupal.org/node/1986418, the screen shots start to show the 0.2em left margin (or right margin for rtl). And perhaps no one else sees the tension between the baseline/descenders and the top of the form field. I've been looking at type for some time now.Clearly a lot of eyes have been scrutinizing the seven theme, which is great. But let me ask you, don't you think the labels should flush left with their form fields? Is there an intention to the 0.2em left margin?
Comment #6
lewisnymanI think it is intentional, but I think we were influenced by the example "Title" text and the way the Ascender juts out to the left. It doesn't look too bad without the margin... What do you think?

Comment #7
esod commentedWhat caught my eye originally was the label for the body field. The cap B doesn't need to be indented.




In those days, when typesetting was all we did, you wouldn't add an indent for a letter's arm like the cap T in the title label. See the capital letter F in this page from James Felici The Complete Manual of Typography (2003) for terminology.
Indenting the D in database looks wrong to me in these "before" screen shots:
So yes, I think it looks better without the indent, like in your screen shot in #6. Damn the T. :)
Type is subtle. Check this out. Visually the cap D in Database configuration in the next screen shot looks indented when you view it above the capital letter D in Database type. A type "hint" was probably added by the typeface designer to the larger font size. Should we change that now with code? I don't think so. It's very subtle.

Comment #8
esod commentedYou don't want to add more things like an indent for one letter, but not, conceivably for another letter. It's type. It may be inconsistent on a purely technical level, but this inconsistency is accepted as the way things are in type. For instance, why are the cap heights of san-serif typefaces taller than the cap heights of serif typefaces? Perhaps three to five hundred years ago there actually was a technical reason. Now, it's just something that's known about cap heights.
To my practiced eye, the 0.2em left margin looks jarring and we should remove it. I think adding the air between the baseline/descenders and the top border of their form fields is a good idea too.
Comment #9
esod commentedThis is all lingo (cap, cap height, cut space, descender, ascender, arm, air) from the somewhat arcane world of type. I hope I'm not being boring or making it difficult to understand.
Comment #10
lewisnymanOk great :-) I'm convinced. Let's remove this, I will review this patch.
Is the plan here to have an indent, but less so?
What's the logic in moving the spacing from margin to padding?
Is there a need to reset the margin to 0? It seems better to just delete the line.
Comment #11
esod commentedYes, better to just delete the line. There's no need to reset the margin to 0.
Comment #12
lewisnymanSorry looks like I forgot to review this last patch. Looks good!
Comment #13
alexpottFrom #10
Comment #14
esod commentedHi. Wow, I was really into this discussion two months ago. That's okay. I do love typography.
Sure, we can stay with margin changes only. I guess I thought padding: 0: on line 28 of form.css seemed unnecessary.
New patch attached.
Comment #15
lewisnymanThanks, this make it much easier to review and approve.
Comment #19
idebr commentedI did some manual testing on this, looks great!
Two minor remarks though
Now that the margins for LTR and RTL are identical, the RTL override can be removed.
The trailing 0 can removed, it will take the value of the 'right' value.
Comment #20
esod commentedIndeed yes @idebr. Thanks for your eye.
New patch attached, rolled from root directory this time.
Comment #21
idebr commentedSorry to be a pain on such details, but this question was raised before in #10 and #13 and should at least be addressed (not necessarily changed) before RTBC:
Thanks for your work and patience on this issue :)
Comment #22
esod commentedD'oh! #20 was the patch with the padding. We're going with changes to the margins only. Ignore #20, please.
New patch attached.
Comment #23
lewisnymanI'm not sure if adding margins to both sides of the label is a good idea, how does this affect inline form like the views exposed filters? I would prefer to just tweak that value instead of going beyond the objective of the issue.
Comment #24
lewisnymanAlso, this adds spacing to the bottom of the label. It took me a while of staring to see that :)
Comment #25
esod commentedWell sure, adding space to the bottom of the label is my intent. It alleviates the visual tension between the descenders and the top border of the form field. I'll have a look at #23 and comment again.
Comment #26
idebr commented@LewisNyman #23
This patch removes the margin from the side and adds margin to the bottom. Was this a typo or did you misread the patch? :)
Screenshot before:
Screenshot after:
Comment #27
lewisnymanSorry I forgot what we were doing for five minutes! Ignore me. Looks like we're good to go then?
Comment #28
esod commentedYes, I think we're good to go. Per @idebr comments, there is no reason to keep
[dir="rtl"] label {}since the margin we're changing is now identical tolabel {}. As well asmargin: 0 0 0.1em 0is identical tomargin: 0 0 0.1em;. I'm trying to find a views exposed filters form to check if there's anything amiss. But, otherwise, let's commit this. This is a significant change even if the code change is minor.Comment #29
alexpottCSS is unfrozen in beta. Committed e631fbf and pushed to 8.0.x. Thanks!