fix: restore icon variant for link since inline-flex makes its children inline but not the box itself

This commit is contained in:
Christian Andolf
2025-06-11 17:06:53 +02:00
parent 2dd07eb6b8
commit 9ee0ec2d46
10 changed files with 22 additions and 15 deletions

View File

@@ -87,7 +87,7 @@ export const renderOptions: RenderOptions = {
return (
<Link
key={node.uid}
className={cx(styles.link, className)}
className={className}
{...props}
href={node.attrs.url}
target={node.attrs.target ?? "_blank"}
@@ -348,7 +348,7 @@ export const renderOptions: RenderOptions = {
}
return (
<span className={cx(styles.span, propsClassName)} {...props}>
<span className={propsClassName} {...props}>
{next(node.children, embeds, fullRenderOptions)}
</span>
)
@@ -416,10 +416,11 @@ export const renderOptions: RenderOptions = {
return (
<Link
key={node.uid}
className={cx(styles.link, className)}
className={className}
href={node.attrs.href}
textDecoration="underline"
target="_blank"
variant="icon"
{...props}
>
{next(
@@ -466,7 +467,7 @@ export const renderOptions: RenderOptions = {
return (
<Link
key={node.uid}
className={cx(styles.link, className)}
className={className}
{...props}
href={entry.node.url}
textDecoration="underline"
@@ -818,7 +819,7 @@ export const renderOptions: RenderOptions = {
}
return (
<Typography key={id} variant="Body/Paragraph/mdRegular">
<span className={cx(styles.span, propsClassName)} {...props}>
<span className={propsClassName} {...props}>
{children}
</span>
</Typography>