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