fix(BOOK-772): Added correct typography around some RTE elements
Approved-by: Bianca Widstam Approved-by: Matilda Landström
This commit is contained in:
@@ -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>
|
||||
)
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user