Skip to content

Commit

Permalink
Merge pull request #13781 from Expensify/francois-holdMouseTouchableO…
Browse files Browse the repository at this point in the history
…pacity

Change active opacity for labels in CheckboxWithLabel components
  • Loading branch information
Chris Kosuke Tseng authored Jan 4, 2023
2 parents 9a0f817 + a07a26b commit 9e3b1b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/CheckboxWithLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import styles from '../styles/styles';
import Checkbox from './Checkbox';
import Text from './Text';
import FormHelpMessage from './FormHelpMessage';
import variables from '../styles/variables';

const requiredPropsCheck = (props) => {
if (!props.label && !props.LabelComponent) {
Expand Down Expand Up @@ -99,6 +100,7 @@ class CheckboxWithLabel extends React.Component {
<TouchableOpacity
focusable={false}
onPress={this.toggleCheckbox}
activeOpacity={variables.checkboxLabelActiveOpacity}
style={[
styles.ml3,
styles.pr2,
Expand Down
1 change: 1 addition & 0 deletions src/styles/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ export default {
INACTIVE_LABEL_TRANSLATE_Y: getValueUsingPixelRatio(16, 21),
sliderBarHeight: 8,
sliderKnobSize: 26,
checkboxLabelActiveOpacity: 0.7,
};

0 comments on commit 9e3b1b0

Please sign in to comment.