make button blue when tooltip is visible (#9668)
This commit is contained in:
@@ -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}>
|
||||||
|
|||||||
Reference in New Issue
Block a user