TheOdinProject / theodinproject

Main Website for The Odin Project
http://www.theodinproject.com
MIT License
3.56k stars 2.06k forks source link

Fix: Remove flex from .anchor-link #4508

Closed MaoShizhong closed 2 months ago

MaoShizhong commented 2 months ago

Because

.anchor-link's flex property was causing rendering issues with <em> children as per https://github.com/TheOdinProject/curriculum/issues/27831. Only just discovered as #4507 let level 4 headings generate > .anchor-link and that sole heading was the only occurrence of having a child tag splitting up the text content.

Flex is no longer needed for .anchor-link (those headings are the only things that currently use the class).

This PR

Issue

N/A

Additional Information

Pull Request Requirements