diff --git a/components/Content/Blocks/TextCols/index.tsx b/components/Content/Blocks/TextCols/index.tsx
index 8fd79c478..e61fe754f 100644
--- a/components/Content/Blocks/TextCols/index.tsx
+++ b/components/Content/Blocks/TextCols/index.tsx
@@ -1,6 +1,8 @@
import JsonToHtml from "@/components/JsonToHtml"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
+import { renderOptions } from "./renderOptions"
+
import styles from "./textcols.module.css"
import type { TextColsProps } from "@/types/components/content/blocks"
@@ -16,6 +18,7 @@ export default function TextCols({ text_cols }: TextColsProps) {
+ {next(node.children, embeds, fullRenderOptions)} +
+ ) + }, + [RTETypeEnum.a]: ( + node: RTERegularNode, + embeds: EmbedByUid, + next: RTENext, + fullRenderOptions: RenderOptions + ) => { + if (node.attrs.url) { + return ( + + {next(node.children, embeds, fullRenderOptions)} + + ) + } + return null + }, + [RTETypeEnum.reference]: ( + node: RTENode, + embeds: EmbedByUid, + next: RTENext, + fullRenderOptions: RenderOptions + ) => { + if ("attrs" in node) { + const type = node.attrs.type + if (type !== RTEItemTypeEnum.asset) { + const href = node.attrs?.locale + ? `/${node.attrs.locale}${node.attrs.href}` + : node.attrs.href + return ( + + {next(node.children, embeds, fullRenderOptions)} + + ) + } + + return null + } + }, +} diff --git a/components/Content/Blocks/TextCols/textcols.module.css b/components/Content/Blocks/TextCols/textcols.module.css index d9fd60a1c..dfa0a3c49 100644 --- a/components/Content/Blocks/TextCols/textcols.module.css +++ b/components/Content/Blocks/TextCols/textcols.module.css @@ -14,9 +14,14 @@ flex-direction: column; } -.text p { +.p { color: var(--UI-Text-High-contrast); line-height: var(--Spacing-x3); + margin: 0; +} + +.a { + color: var(--Base-Text-High-contrast); } .text section {