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

Label styling #14

Open
dariakoko opened this issue Feb 15, 2021 · 1 comment
Open

Label styling #14

dariakoko opened this issue Feb 15, 2021 · 1 comment
Assignees

Comments

@dariakoko
Copy link

Hello,

I have spotted an issue with label width.
You have styles that work perfectly when there is only one textfield in a row.

container: {
    position: 'absolute',
    top: 0,
    left: '-100%',
    width: '200%',
    paddingLeft: '50%',
  },

But whet it's more than one of them, there is an issue with the width. As you can see on the image, the label has bigger width than the textInput. So, in my case, if I press in the end of the "Street" field, the "Number" field becomes active instead.
image

"rn-material-ui-textfield": "1.0.2",

@gabrieldonadel gabrieldonadel self-assigned this Feb 15, 2021
@gabrieldonadel
Copy link
Owner

Hi @Nargle30 I'm still investigating this but it seems pretty similar to the issue reported here, as a quick fix I would suggest you using the containerStyle prop like the above

<TextField
 ...
 containerStyle={overflow: 'hidden'}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants