-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Text & Dropdown Input Styles #12447
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
Text & Dropdown Input Styles #12447
Changes from all commits
5dc12f2
6ee9c62
48f1916
e695c5d
d1b5304
355ab21
544750a
999525c
54b5430
c4a3f7a
7c8a096
a37c048
6727994
a548e9a
81afaef
bfd3865
fb74a32
b5a6bd3
52bb267
2e885c8
a3415b2
bf2d4d3
266dfe0
51b1a75
b57c985
243e830
81530b9
5bb34e3
e7a1f56
94925f7
96c8fca
fb0f758
1d3ac19
98b31fc
ff0590d
307d4ec
d34c4cc
2ac0245
7935ce7
7ed732b
af7f53a
725ae01
a05191d
3bc3aa9
6e87f30
933a08c
dbd2f42
ed95537
866f2c0
e5e0e1a
266902b
d9acaf0
4471cb7
e93f98f
508c9fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,12 +26,12 @@ const picker = { | |
| fontFamily: fontFamily.EXP_NEUE, | ||
| fontSize: variables.fontSizeNormal, | ||
| lineHeight: variables.fontSizeNormalHeight, | ||
| paddingHorizontal: 11, | ||
| paddingBottom: 8, | ||
| paddingTop: 23, | ||
| paddingLeft: 0, | ||
| paddingRight: 25, | ||
| height: variables.inputHeight, | ||
| borderWidth: 0, | ||
| borderRadius: variables.componentBorderRadiusNormal, | ||
| textAlign: 'left', | ||
Luke9389 marked this conversation as resolved.
Show resolved
Hide resolved
Luke9389 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }; | ||
|
|
||
|
|
@@ -560,8 +560,8 @@ const styles = { | |
| inputIOS: { | ||
| fontFamily: fontFamily.EXP_NEUE, | ||
| fontSize: variables.fontSizeSmall, | ||
| paddingLeft: 9, | ||
| paddingRight: 25, | ||
| paddingLeft: 0, | ||
| paddingRight: 17, | ||
| paddingTop: 6, | ||
| paddingBottom: 6, | ||
| borderRadius: variables.componentBorderRadius, | ||
|
|
@@ -574,8 +574,8 @@ const styles = { | |
| inputWeb: { | ||
| fontFamily: fontFamily.EXP_NEUE, | ||
| fontSize: variables.fontSizeSmall, | ||
| paddingLeft: 9, | ||
| paddingRight: 25, | ||
| paddingLeft: 0, | ||
| paddingRight: 17, | ||
| paddingTop: 6, | ||
| paddingBottom: 6, | ||
| borderWidth: 0, | ||
|
|
@@ -590,8 +590,8 @@ const styles = { | |
| inputAndroid: { | ||
| fontFamily: fontFamily.EXP_NEUE, | ||
| fontSize: variables.fontSizeSmall, | ||
| paddingLeft: 9, | ||
| paddingRight: 25, | ||
| paddingLeft: 0, | ||
| paddingRight: 17, | ||
| paddingTop: 6, | ||
| paddingBottom: 6, | ||
| borderWidth: 0, | ||
|
|
@@ -602,7 +602,6 @@ const styles = { | |
| }, | ||
| iconContainer: { | ||
| top: 7, | ||
| right: 8, | ||
Luke9389 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ...pointerEventsNone, | ||
| }, | ||
| icon: { | ||
|
|
@@ -718,24 +717,22 @@ const styles = { | |
|
|
||
| textInputContainer: { | ||
| flex: 1, | ||
| borderRadius: variables.componentBorderRadiusNormal, | ||
| justifyContent: 'center', | ||
| height: '100%', | ||
| backgroundColor: themeColors.componentBG, | ||
| borderWidth: 1, | ||
| backgroundColor: 'transparent', | ||
| borderBottomWidth: 2, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Issues with RoomInput are expected as it was missed during testing because of being behind beta. There was one more issue found before, check last comment before this.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense :) |
||
| borderColor: themeColors.border, | ||
| overflow: 'hidden', | ||
| }, | ||
|
|
||
| textInputLabel: { | ||
| position: 'absolute', | ||
| left: 11, | ||
| left: 0, | ||
| top: 0, | ||
| fontSize: variables.fontSizeNormal, | ||
| color: themeColors.textSupporting, | ||
| fontFamily: fontFamily.EXP_NEUE, | ||
| width: '100%', | ||
| textAlign: 'left', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this change it will fix #12447 (review). And we can put back the padding: 0 on textinput.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Luke9389 Can you test it?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure it fixes that problem? Testing takes abt an hour to build now, so I'm not wanting to experiment on changes.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me confirm fix. I am able to test real time on android physical device
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking you will test it locally. 😄 It fixed the issue for me.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@parasharrajat is that after putting
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This bug doesn't occur on my emulator at all, so I need to test on a physical device (my phone). That's why I'm testing with external builds.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still not working for me even after putting
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current code doesn't have
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, current code works |
||
| }, | ||
|
|
||
| textInputLabelBackground: { | ||
|
|
@@ -744,8 +741,6 @@ const styles = { | |
| width: '100%', | ||
| height: 25, | ||
| backgroundColor: themeColors.componentBG, | ||
| borderTopRightRadius: variables.componentBorderRadiusNormal, | ||
| borderTopLeftRadius: variables.componentBorderRadiusNormal, | ||
| }, | ||
|
|
||
| textInputLabelDesktop: { | ||
|
|
@@ -767,7 +762,7 @@ const styles = { | |
| color: themeColors.text, | ||
| paddingTop: 23, | ||
| paddingBottom: 8, | ||
| paddingHorizontal: 11, | ||
| paddingLeft: 0, | ||
Luke9389 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| borderWidth: 0, | ||
| }, | ||
|
|
||
|
|
@@ -789,8 +784,6 @@ const styles = { | |
| textInputDesktop: addOutlineWidth({}, 0), | ||
|
|
||
| secureInputShowPasswordButton: { | ||
| borderTopRightRadius: 6, | ||
| borderBottomRightRadius: 6, | ||
| paddingHorizontal: 11, | ||
| justifyContent: 'center', | ||
| margin: 1, | ||
|
|
@@ -802,7 +795,7 @@ const styles = { | |
| }, | ||
|
|
||
| textInput: { | ||
| backgroundColor: themeColors.componentBG, | ||
| backgroundColor: 'transparent', | ||
| borderRadius: variables.componentBorderRadiusNormal, | ||
| height: variables.inputComponentSizeNormal, | ||
| borderColor: themeColors.border, | ||
|
|
@@ -832,30 +825,43 @@ const styles = { | |
| }, | ||
|
|
||
| pickerContainer: { | ||
| borderWidth: 1, | ||
| borderBottomWidth: 2, | ||
| paddingLeft: 0, | ||
| borderStyle: 'solid', | ||
| borderColor: themeColors.border, | ||
| borderRadius: variables.componentBorderRadiusNormal, | ||
| justifyContent: 'center', | ||
| backgroundColor: themeColors.componentBG, | ||
| backgroundColor: 'transparent', | ||
| height: variables.inputHeight, | ||
| }, | ||
|
|
||
| pickerContainerSmall: { | ||
| height: variables.inputHeightSmall, | ||
| }, | ||
|
|
||
| pickerLabel: { | ||
| position: 'absolute', | ||
| left: 11, | ||
| left: 0, | ||
| top: 6, | ||
| }, | ||
|
|
||
| picker: (disabled = false) => ({ | ||
| iconContainer: { | ||
| top: Math.round(variables.inputHeight * 0.5) - 11, | ||
| right: 10, | ||
| right: 0, | ||
| zIndex: -1, | ||
| }, | ||
|
|
||
| inputWeb: { | ||
| appearance: 'none', | ||
| cursor: disabled ? 'not-allowed' : 'pointer', | ||
| ...picker, | ||
| }, | ||
| inputNative: { | ||
|
|
||
| inputIOS: { | ||
| ...picker, | ||
| }, | ||
|
|
||
| inputAndroid: { | ||
| ...picker, | ||
| }, | ||
Luke9389 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }), | ||
|
|
@@ -869,16 +875,6 @@ const styles = { | |
| color: themeColors.icon, | ||
| }, | ||
|
|
||
| textInputReversed: addOutlineWidth({ | ||
| backgroundColor: themeColors.heading, | ||
| borderColor: themeColors.text, | ||
| color: themeColors.textReversed, | ||
| }, 0), | ||
|
|
||
| textInputReversedFocus: { | ||
| borderColor: themeColors.icon, | ||
| }, | ||
|
|
||
| noOutline: addOutlineWidth({}, 0), | ||
|
|
||
| errorOutline: { | ||
|
|
@@ -1403,7 +1399,6 @@ const styles = { | |
| fontFamily: fontFamily.EMOJI_TEXT_FONT, | ||
| fontSize: variables.fontSizeNormal, | ||
| borderWidth: 0, | ||
| borderRadius: variables.componentBorderRadiusRounded, | ||
| height: 'auto', | ||
| lineHeight: variables.lineHeightXLarge, | ||
| ...overflowXHidden, | ||
|
|
@@ -1426,6 +1421,7 @@ const styles = { | |
| }, | ||
|
|
||
| editInputComposeSpacing: { | ||
| backgroundColor: themeColors.transparent, | ||
| marginVertical: 6, | ||
| }, | ||
|
|
||
|
|
@@ -1813,6 +1809,7 @@ const styles = { | |
|
|
||
| borderNone: { | ||
| borderWidth: 0, | ||
| borderBottomWidth: 0, | ||
| }, | ||
|
|
||
| borderRight: { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.