-
Notifications
You must be signed in to change notification settings - Fork 593
fix: article styling #13118
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
base: main
Are you sure you want to change the base?
fix: article styling #13118
Conversation
| li: { | ||
| fontFamily: FONTS.regular, | ||
| color: color("mono100"), | ||
| marginBottom: "1em", | ||
|
|
||
| ...variantStyles, | ||
| }, |
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.
MrSltun
left a comment
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.
Thank you roop 🌟 🙏
brainbicycle
left a comment
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.
looks great thank you! I am wondering if there is any way to get ahead of these in the future, that is what usually seems to happen now is someone publishes an article with some elements the app doesn't support well, they see it in the app, file a bug and then we rush to fix it. Is there any way we could review articles for what the expected html spec support is? or codify what the expected support is? or offer previews on app before publishing? I don't necessarily think any of those are worth doing now, just thinking out loud if this keeps being a problem.

This PR resolves DIAM-246
Description
Some articles include H1s and unordered lists, which are not rendered correctly.
H1s would seem unconventional since they are presumably reserved for article titles, but some articles (example) do make use of them and they are handled appropriately on web. Header styles are adjusted here accordingly, to preserve the relative size relationships between article header and body.
H1(in article body)
UL&
LI(for comparison)
PR Checklist
To the reviewers 👀
Changelog updates
Changelog updates
Cross-platform user-facing changes
iOS user-facing changes
Android user-facing changes
Dev changes
Need help with something? Have a look at our docs, or get in touch with us.