git.iko.soy/typeable/elm-ui
on master help sign in
allow font color to skip over transparent color of embedded element used for textarea height content
b17280aMatthew Griffith
src/Internal/Model.elm+23−5
@@ -2681,11 +2681,29 @@ toStyleSheetString options stylesheet =
2681 ]
2681 ]
2682
2682
2683 Colored class prop color ->
2683 Colored class prop color ->
2684− renderStyle
2684+ -- This is because the trick we're using to make a txtarea be height:content
2685+ -- stops the inheritance chain for font color.
2686+ -- So we need to pack our bags, hike up our socks and jump over the break.
2687+ if prop == "color" then
2688+ String.concat
2689+ [ renderStyle
2685− maybePseudo
2690+ maybePseudo
2686− ("." ++ class)
2691+ ("." ++ class)
2687− [ Property prop (formatColor color)
2692+ [ Property prop (formatColor color)
2693+ ]
2694+ , renderStyle
2695+ maybePseudo
2696+ ("." ++ class ++ " ." ++ classes.inputMultilineParent ++ " ." ++ classes.inputMultiline)
2697+ [ Property prop (formatColor color)
2698+ ]
2699+ ]
2700+
2701+ else
2702+ renderStyle
2703+ maybePseudo
2704+ ("." ++ class)
2705+ [ Property prop (formatColor color)
2688− ]
2706+ ]
2689
2707
2690 SpacingStyle cls x y ->
2708 SpacingStyle cls x y ->
2691 let
2709 let
src/Internal/Style.elm−4
@@ -1531,11 +1531,7 @@ baseSheet =
1531 [ Prop "white-space" "pre-wrap"
1531 [ Prop "white-space" "pre-wrap"
1532 , Prop "height" "100%"
1532 , Prop "height" "100%"
1533 , Prop "width" "100%"
1533 , Prop "width" "100%"
1534−
1535− -- , Prop "color" "transparent"
1536 , Prop "background-color" "transparent"
1534 , Prop "background-color" "transparent"
1537−
1538− -- , Prop "caret-color" "black"
1539 ]
1535 ]
1540 , Descriptor (dot classes.inputMultilineParent)
1536 , Descriptor (dot classes.inputMultilineParent)
1541 [ Prop "white-space" "pre-wrap"
1537 [ Prop "white-space" "pre-wrap"