Skip to content

Commit 414a86e

Browse files
committed
Improve tooltip and button styles for disabled state in connect actions
1 parent 3737219 commit 414a86e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
applicationId "com.compassconnections.app"
1212
minSdkVersion rootProject.ext.minSdkVersion
1313
targetSdkVersion rootProject.ext.targetSdkVersion
14-
versionCode 124
14+
versionCode 125
1515
versionName "1.29.1"
1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1717
aaptOptions {

web/components/profile/connect-actions.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export function ConnectActions(props: {profile: Profile; user: User}) {
137137
return (
138138
<Tooltip
139139
key={'connection-type-key-' + type}
140+
className={isDisabled ? 'cursor-not-allowed' : undefined}
140141
text={
141142
isDisabled &&
142143
t('profile.not_both_open_to_type', 'You are not both open to a {type}', {
@@ -157,7 +158,7 @@ export function ConnectActions(props: {profile: Profile; user: User}) {
157158
? 'bg-primary-100 border-primary-300'
158159
: 'bg-canvas-50 text-ink-700 border-ink-300'
159160
}
160-
${isDisabled ? 'opacity-30 cursor-not-allowed' : 'hover:border-primary-400'}
161+
${isDisabled ? 'opacity-30 pointer-events-none' : 'hover:border-primary-400'}
161162
`}
162163
>
163164
{t(`profile.relationship.${type}`, label)}

0 commit comments

Comments
 (0)