-
Notifications
You must be signed in to change notification settings - Fork 1
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
Style section highlights headers as h2/h3 #2203
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good change. I'm wondering about the awkwardness of the h3Style on the h1. Maybe we should update the heading style names to be more abstract like large/medium/small? Or add aliases?
I'm conflicted on whether it's good to have the association between h1 and a particular size. We do tend to think that way. It makes some sense to say "this will be styled like we normally style an h3 even though it's structurally an h1". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we could totally make a case for either way... I think I mentally tend to separate the style from the markup (though hopefully they match in relative scale) because I'm used making small tweaks in different areas anyway. But with REX I don't have a good sense of how these are used, so I think this is a good way to handle it. And in the future we might replace some of these with typography helpers from ui-components.
[DISCO-43]
fe06a77
to
96875f4
Compare
96875f4
to
b8b0aa2
Compare
@jivey I added a commit here to pull the put-away X out of the popup header. Thought you might want to look it over. I had to change Header to be a div and then put the h1 tags explicitly around the heading text. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a nice idea for handling the h1 in Header 👍
DISCO-43
I made the Popup Header an h1 so that we have the correct sequence of headers.
It made no sense to me that it was an h3 previously. It is a major, separate section. If we think it should be h3, then the section headers need to become h4 and h5.