-
Notifications
You must be signed in to change notification settings - Fork 100
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
Remove the github-markdown
class from lesson content
#304
base: trunk
Are you sure you want to change the base?
Conversation
Removing the `github-markdown` class brings back 16px font sizing on lesson content, which is far more accessible than 14px.
(Alternatively, we can modify the |
The paragraph font size looks good after this change, but the headings look bigger and much less neat. Could you update this PR t ensure the headings remain the same? Changing the font size for the github-markdown paragraphs would probably be easiest I think. |
Can do tomorrow, @hlashbrooke! |
@aurooba hey 👋 Are you still available to refresh this PR based on @hlashbrooke's suggestions? |
I agree that removing this is better, as it makes it consistent with the rest of the site styles. https://learn.wordpress.org/tutorial/create-block-theme-improvements/ You can see this on other pages on learn, the headings are slightly bigger and without the underline. |
When removing the
When testing the PR, view several pages with differing content to get more insight into how removing this class will affect the appearance of existing content. Everyone may love the result, it's just best to know what the whole result is before committing to the change. 🙂 |
I did a search for the use of the Here is a screenshot with the class removed. As you can see, there is a small visual bug in the module lesson list, which can be fixed by applying a font-size of 14px to the |
Removing the
github-markdown
class brings back 16px font sizing on lesson content, which is far more accessible than 14px. Right now Lessons are harder to read than necessary because the body is using 14px. It also feels visually different from other parts of public-facing WordPress documentation.Right now, removing that class also removes the borders underneath subheadings. If this is a style we should be keeping, please let me know so I can update this PR with an additional commit. :)
Before:
After: