mirror of
https://github.com/mdgriffith/elm-ui.git
synced 2024-11-22 20:34:04 +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 =
|
||||
List.foldl (renderProps False) "" props
|
||||
in
|
||||
[ selector
|
||||
++ "-fs:focus {"
|
||||
[ selector ++ "-fs:focus {" ++ renderedProps ++ "\n}"
|
||||
, ("." ++ classes.any ++ ":focus " ++ selector ++ "-fs {")
|
||||
++ renderedProps
|
||||
++ "\n}"
|
||||
, "."
|
||||
++ classes.any
|
||||
++ ":focus ~ "
|
||||
++ selector
|
||||
++ "-fs:not(.focus) {"
|
||||
, (selector ++ "-fs:focus-within {")
|
||||
++ renderedProps
|
||||
++ "\n}"
|
||||
, "."
|
||||
++ classes.any
|
||||
++ ":focus "
|
||||
++ selector
|
||||
++ "-fs {"
|
||||
++ renderedProps
|
||||
++ "\n}"
|
||||
, selector
|
||||
++ "-fs:focus-within {"
|
||||
++ renderedProps
|
||||
++ "\n}"
|
||||
, ".focusable-parent:focus ~ "
|
||||
++ "."
|
||||
++ classes.any
|
||||
++ " "
|
||||
++ selector
|
||||
++ "-fs {"
|
||||
, (".focusable-parent:focus ~ " ++ "." ++ classes.any ++ " " ++ selector ++ "-fs {")
|
||||
++ renderedProps
|
||||
++ "\n}"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user