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.
|
// Navy text color = adapts to dark mode. White/yellow = always explicit.
|
||||||
const textColorMap: Record<string, { h1: string; h2: string; body: string }> = {
|
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: {
|
navy: {
|
||||||
h1: 'text-fd-navy dark:text-fd-yellow',
|
h1: 'text-fd-navy dark:text-fd-yellow',
|
||||||
h2: '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,
|
subheading,
|
||||||
body,
|
body,
|
||||||
alignment = 'left',
|
alignment = 'left',
|
||||||
textColor = 'navy',
|
textColor = 'dark',
|
||||||
sectionBackground = 'white',
|
sectionBackground = 'white',
|
||||||
maxWidth = 'wide',
|
maxWidth = 'wide',
|
||||||
anchorId,
|
anchorId,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user