Skip to content

Commit

Permalink
chore(website): Add word-break to headings for markdown pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Jan 18, 2022
1 parent 7cd7b8c commit 03b1301
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
@@ -1,3 +1,7 @@
.heading {
word-break: break-word;
}

.task {
list-style: none;
margin-left: -2.5rem;
Expand Down
7 changes: 6 additions & 1 deletion packages/documentation/src/components/Markdown/renderers.tsx
Expand Up @@ -80,7 +80,12 @@ export const renderers: MarkdownRenderers = {

const id = useSluggedId(tokens);
return (
<Typography id={id} type={type} suppressHydrationWarning>
<Typography
id={id}
type={type}
className={styles.heading}
suppressHydrationWarning
>
{children}
</Typography>
);
Expand Down

1 comment on commit 03b1301

@vercel
Copy link

@vercel vercel bot commented on 03b1301 Jan 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.