Use medium font weight in a few places (#8848)
* medium font toasts * medium font tabs * medium font trending pill
This commit is contained in:
@@ -539,7 +539,7 @@ let Tab = ({
|
|||||||
]}>
|
]}>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
/* TODO: medium weight */
|
a.font_medium,
|
||||||
active || hovered || pressed || focused
|
active || hovered || pressed || focused
|
||||||
? t.atoms.text
|
? t.atoms.text
|
||||||
: t.atoms.text_contrast_medium,
|
: t.atoms.text_contrast_medium,
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export function ToastText({children}: {children: React.ReactNode}) {
|
|||||||
selectable={false}
|
selectable={false}
|
||||||
style={[
|
style={[
|
||||||
a.text_md,
|
a.text_md,
|
||||||
a.font_bold,
|
a.font_medium,
|
||||||
a.leading_snug,
|
a.leading_snug,
|
||||||
a.pointer_events_none,
|
a.pointer_events_none,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ let Tab = ({
|
|||||||
]}>
|
]}>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
/* TODO: medium weight */
|
a.font_medium,
|
||||||
active || hovered || pressed || focused
|
active || hovered || pressed || focused
|
||||||
? t.atoms.text
|
? t.atoms.text
|
||||||
: t.atoms.text_contrast_medium,
|
: t.atoms.text_contrast_medium,
|
||||||
|
|||||||
@@ -163,10 +163,7 @@ function TrendingIndicator({type}: {type: TrendingIndicatorType | 'skeleton'}) {
|
|||||||
a.align_center,
|
a.align_center,
|
||||||
a.gap_xs,
|
a.gap_xs,
|
||||||
a.rounded_full,
|
a.rounded_full,
|
||||||
a.px_sm,
|
{height: 28, paddingHorizontal: 10},
|
||||||
{
|
|
||||||
height: 28,
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|
||||||
let Icon: React.ComponentType<SVGIconProps> | null = null
|
let Icon: React.ComponentType<SVGIconProps> | null = null
|
||||||
@@ -218,7 +215,7 @@ function TrendingIndicator({type}: {type: TrendingIndicatorType | 'skeleton'}) {
|
|||||||
return (
|
return (
|
||||||
<View style={[pillStyles, {backgroundColor}]}>
|
<View style={[pillStyles, {backgroundColor}]}>
|
||||||
{Icon && <Icon size="sm" style={{color}} />}
|
{Icon && <Icon size="sm" style={{color}} />}
|
||||||
<Text style={[a.text_sm, {color}]}>{text}</Text>
|
<Text style={[a.text_sm, a.font_medium, {color}]}>{text}</Text>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user