question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Double border for TextInput inside of a FormField

See original GitHub issue

Upgrading from Grommet 1.5.0 to 1.6.0 changes the way form fields are rendered.

Expected Behavior

In Grommet 1.5.0 a <TextInput /> wrapped in a <FormField /> used to render with just a single outline like this:

image

Actual Behavior

After upgrading to Grommet 1.6.0 the look changed and now we see a double border:

image

URL, screen shot, or Codepen exhibiting the issue

https://codepen.io/anon/pen/wqWzGN?&editors=0010

class HelloWorldApp extends React.Component {
  render () {
    return (
      <App>
        <FormField>
          <TextInput value="Test" />
        </FormField>
      </App>
    );
  }
};

var element = document.getElementById('content');
ReactDOM.render(<HelloWorldApp />, element);

Your Environment

  • Grommet version: 1.6.0
  • Browser Name and version: Chrome Version 59.0.3071.115 (Official Build) (64-bit)
  • Operating System and version (desktop or mobile): MacOSX

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
alansouzaticommented, Aug 1, 2017

yeah I noticed that after releasing 1.6.0. let me investigate what is going on and release 1.6.1 sometime later today. sorry about that.

1reaction
cherihcommented, Aug 30, 2017

Fixed the issue for input types tel and url.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Remove and Style the Border Around Text Input Boxes ...
Use outline: none to remove the ugly border color for a form field in Chrome. Learn also how to give your own style...
Read more >
Input text field with only bottom border - Stack Overflow
Use outline:0 for chrome.. and then just set border-bottom as you like. input { outline: 0; border-width: 0 0 2px; border-color: blue } ......
Read more >
Double border around an Input field - WebmasterWorld
I'm styling an input field. It has a background image for the inner text area and a dark inner border surrounding that and...
Read more >
Create and style a text field - Flutter documentation
Text fields allow users to type text into an app. They are used to build forms, send messages, create search experiences, and more....
Read more >
CSS Forms - W3Schools
Note that we have set the box-sizing property to border-box . This makes sure that the padding and eventually borders are included in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found