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:
mdgriffith 2020-05-18 19:21:01 -04:00
parent 5d476eda82
commit f4fc54d069

View File

@ -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}"
] ]