Closed (fixed)
Project:
Claro
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2019 at 08:26 UTC
Updated:
8 Oct 2019 at 07:49 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
lauriiiClicked through most pages to make sure the new spacings look fine. It looked fine on all pages that I tested.
Comment #3
lauriiiOops 🤪
Comment #4
huzookaI'm checking this...
Comment #5
huzookaI think it would be better to define only top and bottom margins here, so instead of margin: var(--space-m) 0 var(--space-s), define these with margin-top: var(--space-m) and margin-bottom: var(--space-s)
Since we're here, it would be a good idea to update the font sizes as well imho, but since line-heights are undocumented (and are smaller than the font-size), maybe it's better to skip this step...
Comment #6
lauriii#5.1 May I ask why you prefer setting value only for top and bottom in this case?
#5.2 +1 to moving this to a follow-up. Let's ask the design team to define line-height for headings.
Comment #7
huzookaRe #6:
#5.1: Even if it the two approach seem to be equal, I'm afraid of that defining side margins as
0will lead to issues like #3047433: Check box input element not vey well aligned. If you are sure this will not happen, let's do that, but this approach is a cause for concern imho.Comment #8
fhaeberleI added the suggested changes. @huzooka Yeah, it's a nit but can cause trouble.
Comment #9
lauriiiThere's a difference between these two cases; checkbox is a component which has higher priority and will override the HTML elements default values as a result. I'm +1 to doing that when building components. However, here we are setting the default values for heading HTML elements so there shouldn't be anything with a lower weight, therefore it would be very unlikely that we would override anything as a result of specifying those margins. I still think we should go with #3.
Comment #10
fhaeberleI'm good with both approaches. If some code want to screw it up, it would do it anyway. Lauri made a fair point! Do we have existing "low level components" to compare (which approach was used)?
Comment #11
huzookaSorry, I missed these updates.
I'm okay with both #3 and #8, but I still prefer #8.
Pick one and commit it :)
ps we still need the follow-up.
Comment #12
lauriiiOpened #3083231: Update heading font-sizes and line-heights
Comment #14
lauriiiCommitted #3 given the arguments provided in #9.