fix(SW-719): add body color
This commit is contained in:
@@ -92,10 +92,6 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.bodyText {
|
||||
color: var(--font-color);
|
||||
}
|
||||
|
||||
.buttonContainer {
|
||||
display: flex;
|
||||
gap: var(--Spacing-x1);
|
||||
|
||||
@@ -5,9 +5,10 @@ import Button from "@/components/TempDesignSystem/Button"
|
||||
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
import { getBodyFontColor } from "@/utils/cardBodyFontColor"
|
||||
import { getScriptFontColor } from "@/utils/cardScriptFontColor"
|
||||
import { getTheme } from "@/utils/cardTheme"
|
||||
import { getFontColor } from "@/utils/cardTitleFontColor"
|
||||
import { getTitleFontColor } from "@/utils/cardTitleFontColor"
|
||||
|
||||
import { cardVariants } from "./variants"
|
||||
|
||||
@@ -31,8 +32,9 @@ export default function Card({
|
||||
onSecondaryButtonClick,
|
||||
}: CardProps) {
|
||||
const buttonTheme = getTheme(theme)
|
||||
const fontColor = getFontColor(theme)
|
||||
const titleFontColor = getTitleFontColor(theme)
|
||||
const scriptFontColor = getScriptFontColor(theme)
|
||||
const bodyFontColor = getBodyFontColor(theme)
|
||||
|
||||
imageHeight = imageHeight || 320
|
||||
|
||||
@@ -79,12 +81,12 @@ export default function Card({
|
||||
level="h3"
|
||||
textAlign="center"
|
||||
textTransform="regular"
|
||||
color={fontColor}
|
||||
color={titleFontColor}
|
||||
>
|
||||
{heading}
|
||||
</Title>
|
||||
{bodyText ? (
|
||||
<Body className={styles.bodyText} textAlign="center">
|
||||
<Body textAlign="center" color={bodyFontColor}>
|
||||
{bodyText}
|
||||
</Body>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user