fix(BOOK-772): Added correct typography around some RTE elements

Approved-by: Bianca Widstam
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2026-01-29 13:23:32 +00:00
parent 49f3205b94
commit dbacb650b6

View File

@@ -714,7 +714,7 @@ export const renderOptions: RenderOptions = {
[RTEMarkType.underline]: (children: React.ReactNode) => {
return (
<Typography variant="Link/md">
<Typography variant="Body/Underline/md">
<u>{children}</u>
</Typography>
)
@@ -823,11 +823,9 @@ export const renderOptions: RenderOptions = {
)
}
return (
<Typography key={id} variant="Body/Paragraph/mdRegular">
<span className={propsClassName} {...props}>
{children}
</span>
</Typography>
)
},