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

uniforms-bootstrap4 errorsfield not red #301

Closed
ggerber opened this issue Jun 22, 2017 · 6 comments
Closed

uniforms-bootstrap4 errorsfield not red #301

ggerber opened this issue Jun 22, 2017 · 6 comments
Assignees
Labels
Type: Feature New features and feature requests

Comments

@ggerber
Copy link

ggerber commented Jun 22, 2017

I notice that the errorsfield is red when using uniforms-antd in the demo, but not when using uniforms-bootstrap4. Is it standard styling for bootrap4 to not use a color? Without a background color of sorts the errorsfield blends in with the rest of the form making it less intuitive to see that it is actually a list of validation errors.

@radekmie radekmie self-assigned this Jun 22, 2017
@radekmie radekmie added the Type: Feature New features and feature requests label Jun 22, 2017
@radekmie
Copy link
Contributor

I think it should be red - inputs borders are. Maybe you'd like to submit a PR with it? I'm not an expert in bootstrap though (nor 3 or 4) so let's ask @zeroasterisk.

@zeroasterisk
Copy link
Contributor

zeroasterisk commented Jun 27, 2017

Error state for Bootstrap 4 is basically just: form-group has-danger
http://v4-alpha.getbootstrap.com/components/forms/#validation

Which is being set here:

@radekmie this looks correct to me...

I have tested it on my local project using:

    "bootstrap": "^4.0.0-alpha.6",
    "uniforms": "^1.18.1",
    "uniforms-bootstrap4": "^1.18.1",

ss

@radekmie
Copy link
Contributor

@zeroasterisk yep, it's working in the wrapField - this issue is concerned on <ErrorsField />.

@zeroasterisk
Copy link
Contributor

oh... hmmm... ok - I can make a PR which would "style" the <ErrorsField /> if you like.

I'd probably do it as an outline card:
http://v4-alpha.getbootstrap.com/components/card/#outline-cards

Is that too opinionated, or ok?

@radekmie
Copy link
Contributor

@ggerber what do you think? I'm OK with both.

@ggerber
Copy link
Author

ggerber commented Jun 28, 2017 via email

zeroasterisk added a commit to zeroasterisk/uniforms that referenced this issue Jun 28, 2017
zeroasterisk added a commit to zeroasterisk/uniforms that referenced this issue Jun 28, 2017
zeroasterisk added a commit to zeroasterisk/uniforms that referenced this issue Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New features and feature requests
Projects
Archived in project
Development

No branches or pull requests

3 participants