We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The background element for input label is slightly mispositioned on Web.
I've managed to get a workaround by making a wrapper for TextInput component to add custom styles specifically for Web:
<> <MaterialTextInput mode={mode} textColor={textColor} activeOutlineColor={activeOutlineColor} style={[ {backgroundColor: "#fff"}, style, ]} {...rest} /> {Platform.OS === "web" && ( createElement("style", { dangerouslySetInnerHTML: { __html: ` [data-testid="text-input-outlined-label-background"] { margin-top: -2px; }` } }) )} </>
The text was updated successfully, but these errors were encountered:
It's only on latest react-native-web i downgraded for now to 0.18
Sorry, something went wrong.
Duplicate of #3825
Another possible workaround
<TextInputPaper mode="outlined" ... outlineStyle={{...(Platform.OS === 'web' && {marginTop: '2px'})}} />
I've tried manually changing the 'top' value of the label by -2, and it also fixes(?) the problem
Successfully merging a pull request may close this issue.
Current behaviour
The background element for input label is slightly mispositioned on Web.
Preview
What have you tried so far?
I've managed to get a workaround by making a wrapper for TextInput component to add custom styles specifically for Web:
The text was updated successfully, but these errors were encountered: