Skip to content

Commit 66be5a4

Browse files
authored
Merge pull request #8346 from Santhosh-Sellavel/audit_fix_eye_button_outline
2 parents fb5177e + 8817b4c commit 66be5a4

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/components/TextInput/BaseTextInput.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ class BaseTextInput extends Component {
262262
this.props.inputStyle,
263263
!hasLabel && styles.pv0,
264264
this.props.prefixCharacter && StyleUtils.getPaddingLeft(this.state.prefixWidth + styles.pl1.paddingLeft),
265-
this.props.secureTextEntry && styles.secureInput,
266265
]}
267266
multiline={this.props.multiline}
268267
maxLength={this.props.maxLength}
@@ -276,7 +275,7 @@ class BaseTextInput extends Component {
276275
{this.props.secureTextEntry && (
277276
<Pressable
278277
accessibilityRole="button"
279-
style={styles.secureInputEyeButton}
278+
style={styles.secureInputShowPasswordButton}
280279
onPress={this.togglePasswordVisibility}
281280
>
282281
<Icon

src/styles/styles.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -715,14 +715,12 @@ const styles = {
715715

716716
textInputDesktop: addOutlineWidth({}, 0),
717717

718-
secureInputEyeButton: {
718+
secureInputShowPasswordButton: {
719+
borderTopRightRadius: 6,
720+
borderBottomRightRadius: 6,
719721
paddingHorizontal: 11,
720722
justifyContent: 'center',
721-
},
722-
723-
secureInput: {
724-
borderTopRightRadius: 0,
725-
borderBottomRightRadius: 0,
723+
margin: 1,
726724
},
727725

728726
textInput: {

0 commit comments

Comments
 (0)