mirror of
https://github.com/mdgriffith/elm-ui.git
synced 2024-11-22 20:55:17 +03:00
Remove unnecessary focus style rule - Resolve #198, resolves #126, resolves #98, resolves #48 - I'm wondering if this was left over from a previous design.
This commit is contained in:
parent
5d476eda82
commit
f4fc54d069
@ -2642,34 +2642,14 @@ renderStyle options maybePseudo selector props =
|
|||||||
renderedProps =
|
renderedProps =
|
||||||
List.foldl (renderProps False) "" props
|
List.foldl (renderProps False) "" props
|
||||||
in
|
in
|
||||||
[ selector
|
[ selector ++ "-fs:focus {" ++ renderedProps ++ "\n}"
|
||||||
++ "-fs:focus {"
|
, ("." ++ classes.any ++ ":focus " ++ selector ++ "-fs {")
|
||||||
++ renderedProps
|
++ renderedProps
|
||||||
++ "\n}"
|
++ "\n}"
|
||||||
, "."
|
, (selector ++ "-fs:focus-within {")
|
||||||
++ classes.any
|
|
||||||
++ ":focus ~ "
|
|
||||||
++ selector
|
|
||||||
++ "-fs:not(.focus) {"
|
|
||||||
++ renderedProps
|
++ renderedProps
|
||||||
++ "\n}"
|
++ "\n}"
|
||||||
, "."
|
, (".focusable-parent:focus ~ " ++ "." ++ classes.any ++ " " ++ selector ++ "-fs {")
|
||||||
++ classes.any
|
|
||||||
++ ":focus "
|
|
||||||
++ selector
|
|
||||||
++ "-fs {"
|
|
||||||
++ renderedProps
|
|
||||||
++ "\n}"
|
|
||||||
, selector
|
|
||||||
++ "-fs:focus-within {"
|
|
||||||
++ renderedProps
|
|
||||||
++ "\n}"
|
|
||||||
, ".focusable-parent:focus ~ "
|
|
||||||
++ "."
|
|
||||||
++ classes.any
|
|
||||||
++ " "
|
|
||||||
++ selector
|
|
||||||
++ "-fs {"
|
|
||||||
++ renderedProps
|
++ renderedProps
|
||||||
++ "\n}"
|
++ "\n}"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user