fix: add dark to LMText textColorMap, match config default
This commit is contained in:
parent
f80966c657
commit
f6778a625e
@ -24,6 +24,11 @@ const maxWidthMap: Record<string, string> = {
|
||||
|
||||
// Navy text color = adapts to dark mode. White/yellow = always explicit.
|
||||
const textColorMap: Record<string, { h1: string; h2: string; body: string }> = {
|
||||
dark: {
|
||||
h1: 'text-fd-navy dark:text-fd-yellow',
|
||||
h2: 'text-fd-navy dark:text-fd-yellow',
|
||||
body: 'text-fd-navy dark:text-white',
|
||||
},
|
||||
navy: {
|
||||
h1: 'text-fd-navy dark:text-fd-yellow',
|
||||
h2: 'text-fd-navy dark:text-fd-yellow',
|
||||
@ -38,7 +43,7 @@ export const LMTextBlockComponent: React.FC<LMTextBlockProps> = ({
|
||||
subheading,
|
||||
body,
|
||||
alignment = 'left',
|
||||
textColor = 'navy',
|
||||
textColor = 'dark',
|
||||
sectionBackground = 'white',
|
||||
maxWidth = 'wide',
|
||||
anchorId,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user