-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change to disabled cursor when hovering disabled checkbox #13669
Conversation
@rushatgabhane @grgia One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
I think for web resize(medium/small) and mobile web we need to apply the change to other place diff --git a/src/components/CheckboxWithTooltip/CheckboxWithTooltipForMobileWebAndNative.js b/src/components/CheckboxWithTooltip/
CheckboxWithTooltipForMobileWebAndNative.js
index ac58d030e..43d3c0626 100644
--- a/src/components/CheckboxWithTooltip/CheckboxWithTooltipForMobileWebAndNative.js
+++ b/src/components/CheckboxWithTooltip/CheckboxWithTooltipForMobileWebAndNative.js
@@ -38,6 +38,7 @@ class CheckboxWithTooltipForMobileWebAndNative extends React.Component {
<Checkbox
isChecked={this.props.isChecked}
onPress={this.showGrowlOrTriggerOnPress}
+ disabled={this.props.disabled}
/>
</View>
);
diff --git a/src/components/CheckboxWithTooltip/index.js b/src/components/CheckboxWithTooltip/index.js
index 83756feb0..ced15a589 100644
--- a/src/components/CheckboxWithTooltip/index.js
+++ b/src/components/CheckboxWithTooltip/index.js
@@ -15,6 +15,7 @@ const CheckboxWithTooltip = (props) => {
onPress={props.onPress}
text={props.text}
toggleTooltip={props.toggleTooltip}
+ disabled={props.disabled}
/>
);
}
@@ -22,7 +23,7 @@ const CheckboxWithTooltip = (props) => {
<Checkbox
isChecked={props.isChecked}
onPress={props.onPress}
- disabled={props.toggleTooltip}
+ disabled={props.disabled}
/>
); |
@Pujan92 good point on resize! Thanks! |
Updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, could you add QA steps for resizing?
Added resizing steps |
@grgia @luacmartins sorry that I won't be able to review this PR anytime soon. Please reassign / @grgia could complete the checklist |
@grgia would you mind filling the checklist? I think this PR is simple enough that we don't need more reviewers. |
No problem! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2022-12-20.at.10.03.34.AM.movScreen.Recording.2022-12-20.at.10.02.31.AM.movDesktopScreen.Recording.2022-12-20.at.10.05.06.AM.mov |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
I am commenting on PR, as issue #13627 is locked, I raised the same issue 2 months back here https://expensify.slack.com/archives/C01GTK53T8Q/p1668096360414929 |
🚀 Deployed to production by @chiragsalian in version: 1.2.43-1 🚀
|
@luacmartins can I ask for the reporting bonus for this now? |
|
Left a comment in the issue! Sorry we missed that! |
Thankyou 😀 |
Details
Changes the cursor to the disabled state when the Workspace member can't be selected
Fixed Issues
$ #13627
Tests
On Web only:
Offline tests
N/A
QA Steps
Same as test steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
chrome.mov
Mobile Web - Safari
safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov