styling for alert variant
This commit is contained in:
@@ -111,6 +111,7 @@ export function TitleText({
|
|||||||
style,
|
style,
|
||||||
}: React.PropsWithChildren<ViewStyleProp>) {
|
}: React.PropsWithChildren<ViewStyleProp>) {
|
||||||
const {titleId} = useContext(Context)
|
const {titleId} = useContext(Context)
|
||||||
|
const {type} = Dialog.useDialogContext()
|
||||||
return (
|
return (
|
||||||
<Text
|
<Text
|
||||||
nativeID={titleId}
|
nativeID={titleId}
|
||||||
@@ -120,6 +121,7 @@ export function TitleText({
|
|||||||
a.font_semi_bold,
|
a.font_semi_bold,
|
||||||
a.pb_xs,
|
a.pb_xs,
|
||||||
a.leading_snug,
|
a.leading_snug,
|
||||||
|
type === 'alert' && a.text_center,
|
||||||
style,
|
style,
|
||||||
]}>
|
]}>
|
||||||
{children}
|
{children}
|
||||||
@@ -133,11 +135,18 @@ export function DescriptionText({
|
|||||||
}: React.PropsWithChildren<{selectable?: boolean}>) {
|
}: React.PropsWithChildren<{selectable?: boolean}>) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const {descriptionId} = useContext(Context)
|
const {descriptionId} = useContext(Context)
|
||||||
|
const {type} = Dialog.useDialogContext()
|
||||||
return (
|
return (
|
||||||
<Text
|
<Text
|
||||||
nativeID={descriptionId}
|
nativeID={descriptionId}
|
||||||
selectable={selectable}
|
selectable={selectable}
|
||||||
style={[a.text_md, a.leading_snug, t.atoms.text_contrast_high, a.pb_lg]}>
|
style={[
|
||||||
|
a.text_md,
|
||||||
|
a.leading_snug,
|
||||||
|
t.atoms.text_contrast_high,
|
||||||
|
a.pb_lg,
|
||||||
|
type === 'alert' && a.text_center,
|
||||||
|
]}>
|
||||||
{children}
|
{children}
|
||||||
</Text>
|
</Text>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user