We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
First, thanks for this great project! I've encountered a bug in the way the focus styles are handled:
Expected behavior When focusing an element, only this element should be shown focused.
Current behavior The next siblings of the element are also shown as focused
SSCCE
module Main exposing (main) import Element exposing (Color, Element, el, focused, layout, link, row, spacing, text) import Element.Border as Border import Element.Region as Region import Html exposing (Html) main : Html msg main = layout [] links links : Element msg links = row [ spacing 10 ] [ siteLink "Elm website" "https://elm-lang.org/" , siteLink "Elm-ui" "https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/Element" ] siteLink : String -> String -> Element msg siteLink label url = link [ focused [ Border.glow blue 2 ] ] { url = url , label = text label } blue : Color blue = Element.fromRgb255 { red = 100 , green = 180 , blue = 250 , alpha = 1 }
Workaround
Wrapping each link inside an el fixes the behaviour:
el
siteLink : String -> String -> Element msg siteLink label url = el [] <| link [ focused [ Border.glow blue 2 ] ] { url = url , label = text label }
Versions
The text was updated successfully, but these errors were encountered:
this is the same as #47
Sorry, something went wrong.
f4fc54d
No branches or pull requests
Hello!
First, thanks for this great project! I've encountered a bug in the way the focus styles are handled:
Expected behavior
When focusing an element, only this element should be shown focused.
Current behavior
The next siblings of the element are also shown as focused
SSCCE
SSCCE
Workaround
Wrapping each link inside an
el
fixes the behaviour:Versions
The text was updated successfully, but these errors were encountered: