make button blue when tooltip is visible (#9668)

This commit is contained in:
Samuel Newman
2026-01-15 04:34:59 +02:00
committed by GitHub
parent 1cb362b596
commit 8f82ad66df
@@ -68,10 +68,12 @@ export function SubscribeProfileButton({
const Icon = isSubscribed ? BellRingingIcon : BellPlusIcon const Icon = isSubscribed ? BellRingingIcon : BellPlusIcon
const tooltipVisible = showTooltip && !disableHint
return ( return (
<> <>
<Tooltip.Outer <Tooltip.Outer
visible={showTooltip && !disableHint} visible={tooltipVisible}
onVisibleChange={onDismissTooltip} onVisibleChange={onDismissTooltip}
position="bottom"> position="bottom">
<Tooltip.Target> <Tooltip.Target>
@@ -79,7 +81,7 @@ export function SubscribeProfileButton({
accessibilityRole="button" accessibilityRole="button"
testID="dmBtn" testID="dmBtn"
size="small" size="small"
color="secondary" color={tooltipVisible ? 'primary_subtle' : 'secondary'}
shape="round" shape="round"
label={_(msg`Get notified when ${name} posts`)} label={_(msg`Get notified when ${name} posts`)}
onPress={wrappedOnPress}> onPress={wrappedOnPress}>