Comments (10)
Check this out https://codesandbox.io/s/846nqnp6j0
The key is to change css.
.react-inputs-validation__textbox__input___20hDL.react-inputs-validation__error___2aXSp {
border: none !important;
border-bottom: 1px solid #f44336 !important;
border-bottom-width: 1px !important;
border-bottom-style: solid !important;
border-bottom-color: rgb(244, 67, 54) !important;
-webkit-box-shadow: 0 1px 0 0 #f44336 !important;
box-shadow: 0 1px 0 0 #f44336 !important;
}
As for Icon issue, I don't really know what problem it is.
from react-inputs-validation.
for problem two, customStyleInput={{paddingLeft: '30px'}}
should fix
from react-inputs-validation.
But I don't understand what you mean for the first problem.
"1. the label text color which probably should get fix by working on this CSS:" means its solved?
from react-inputs-validation.
Ok I see, but I think the only way to fix this is to config yourself, give it classNameWrapper="react-inputs-validation-validate"
and
.react-inputs-validation-validate {
margin-left: 3rem;
width: 92%;
width: calc(100% - 3rem);
}
from react-inputs-validation.
thanks for answer but i think i have a better solution for the problem with red line and text massage color here is my sample code: https://codesandbox.io/s/zkk8wxn2z4
but there are two problem right now:
- the label text color which probably should get fix by working on this CSS:
/* label focus color */
.input-field input[type=text].react-inputs-validation__error___2aXSp:focus + label {
color: #F44336 !important;
}
- the icon problem as you can see in my sample code.
from react-inputs-validation.
for better understanding of icon problem please go to the Icon Prefixes part of this link: https://materializecss.com/text-inputs.html
no it means the CSS is not perfect but the solution should be something like that!
from react-inputs-validation.
@edwardfhsiao Alright that's nice thanks for help.
if anyone was facing this problem: https://codesandbox.io/s/zkk8wxn2z4
from react-inputs-validation.
@kiano0sh I updated the version 2.1.7 and check this agian https://codesandbox.io/s/846nqnp6j0.
its a rough idea of how to implement the label thing
from react-inputs-validation.
@edwardfhsiao Good job but there should be an easier way to do this if i found any i will inform you.
from react-inputs-validation.
I am closing this issue now as the structure of this library is not designed to be compatible with material design components specifically.
from react-inputs-validation.
Related Issues (20)
- Issue with Option list without Default Select option HOT 2
- validationOption.custom HOT 2
- Can not search option if try to type HOT 6
- Remove error message HOT 1
- Checkbox - checked property HOT 4
- Remove error message when value of field is updated HOT 1
- use along with materializecss
- Remove the default tabindex -1 HOT 3
- I get the error invariant violation View config not found HOT 4
- IE 11 SCRIPT1003: Expected ':' HOT 17
- Validation issue with Select component HOT 3
- Improve TypeScript support HOT 9
- There is a requirement that requires me to add a link into the message on error HOT 5
- Can you have maxLength also as an option? HOT 3
- Custom styles HOT 11
- CSS style custom validation message HOT 2
- Custom message for empty textbox HOT 3
- Issue with Select component HOT 2
- dependencies? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-inputs-validation.