You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@eslawski is the desired outcome here to create and use a new component token that defaults to the same value? I'd be inclined to call this a feature request rather than a bug.
daneah
changed the title
Pharos heading component does not use css token for bottom margin
Heading: Does not use design token for bottom margin
Jun 20, 2023
TBH I just noticed that the bottom margin wasn't using our spacing tokens and thought that it was an oversight, but now I realize that might be by design. I notice now that the bottom margin is currently using em rather than rem which is what our tokens provide. Makes sense that we probably want the bottom margin to differ for the various heading sizes and what's what the em provides since it scales relative to parent text size.
If that's a correct assessment, I think we can go ahead and close this one.
You have it right that using em was intentional so that the bottom margin would grow with the font size of the heading itself. I could see that being a token nonetheless, but I don't necessarily see a clear driver to do so right at the moment. It's a good thing to recognize as a possible disparity for the future.
Expected behavior
The bottom margin of the heading component uses a pharos css token.
Actual behavior
The bottom margin is currently hardcoded to
.5em
Steps to reproduce the issue
Screenshots or code
If applicable, add screenshots or code to help explain the issue.
Pharos version
v12.19.3
The text was updated successfully, but these errors were encountered: