Skip to content
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

Merged
merged 3 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class CheckboxWithTooltipForMobileWebAndNative extends React.Component {
<Checkbox
isChecked={this.props.isChecked}
onPress={this.showGrowlOrTriggerOnPress}
disabled={this.props.disabled}
/>
</View>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const propTypes = {
/** Container styles */
style: stylePropTypes,

/** Wheter the checkbox is disabled */
disabled: PropTypes.bool,

/** Props inherited from withWindowDimensions */
...windowDimensionsPropTypes,
};
Expand Down
3 changes: 2 additions & 1 deletion src/components/CheckboxWithTooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ const CheckboxWithTooltip = (props) => {
onPress={props.onPress}
text={props.text}
toggleTooltip={props.toggleTooltip}
disabled={props.disabled}
/>
);
}
const checkbox = (
<Checkbox
isChecked={props.isChecked}
onPress={props.onPress}
disabled={props.toggleTooltip}
disabled={props.disabled}
/>
);
return (
Expand Down