Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions code/addons/docs/src/blocks/blocks/mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ const OcticonHeaders = SUPPORTED_MDX_HEADERS.reduce(
(acc, headerType) => ({
...acc,
[headerType]: styled(headerType)({
// Reserve space for the floating anchor icon (which has marginLeft: '-24px')
// so it is visible in both light and dark themes without being clipped.
paddingLeft: '24px',
'& svg': {
position: 'relative',
top: '-0.1em',
Expand Down
Loading