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

Red error border incorrectly sized inside Input.email #154

Open
MartinSStewart opened this issue Oct 1, 2019 · 1 comment
Open

Red error border incorrectly sized inside Input.email #154

MartinSStewart opened this issue Oct 1, 2019 · 1 comment

Comments

@MartinSStewart
Copy link

Firefox tries to be helpful by showing a red border around an email field if the user has entered something that isn't a valid email. This red border doesn't match the size of the email field though.

Here's a SSCCE:

module Main exposing (main)

import Element
import Element.Input as Input
import Html

type Msg
    = NoOp

main : Html.Html Msg
main =
    Element.layout
        []
        (Input.email []
            { onChange = always NoOp
            , label = Input.labelHidden ""
            , placeholder = Nothing
            , text = ""
            }
        )

The same code but on Ellie: https://ellie-app.com/6NStPkq6556a1

Versions

  • OS: MacOS
  • Browser: Firefox
  • Browser Version: 69.0.1
  • Elm Version: 0.19
  • Elm UI Version: 1.1.5
@alexkorban
Copy link
Contributor

#unexpected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants