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

[TextInput] Styling (Red text) on errorMessage prop not present when disabled is true #817

Open
AgeAKristiansen opened this issue Jul 31, 2023 · 1 comment

Comments

@AgeAKristiansen
Copy link

AgeAKristiansen commented Jul 31, 2023

Describe the bug
When passing a string to the errorMessage prop while disabled prop is true doesn't give the red text which I was expecting.
The errorMessage text doesn't show up at all if the TextInput is Disabled and required at the same time.

To Reproduce
<TextInput
disabled
errorMessage={'Some arbitrary text'}
/>

Expected behavior
Expected the text to be red as it is otherwise.

image

Screenshots
with disabled prop
image

with disabled and required prop
image

Additional context
Version used:
fusion-react-textinput: 0.6.15

@odinr odinr transferred this issue from equinor/fusion-react-components Sep 11, 2023
@odinr
Copy link
Collaborator

odinr commented Sep 11, 2023

this will be fixed, but we promote using the EDS component

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