git.iko.soy/rowtype-yoga/ry-blocks
on main help sign in
Allow custom style for range
commitb836b50c3bf7732ff8be5e2195b40dd44efd97d8 authorMark Eibes <mark.eibes@gmail.com> dateTue 13 Jul 2021, 07:46 (5 years ago) parentcbf5b6d
1 file changed+2−2
src/Yoga/Block/Atom/Range/View.purs+2−2
src/Yoga/Block/Atom/Range/View.purs+2−2
@@ -39,7 +39,7 @@ rawComponent =
3939 pure
4040 $ div
4141 </* { className: "ry-range"
42− , css: Style.container <> guard disabled Style.inputDisabled
42+ , css: Style.container <> guard disabled Style.inputDisabled <>? props.css
4343 , onFocus: handler_ $ setHasFocus true
4444 , onBlur: handler_ $ setHasFocus false
4545 , style: fold props.style <> css { "--val": value - min, "--max": max - min }
@@ -58,7 +58,7 @@ rawComponent =
5858 }
5959 )
6060 { className: "ry-range-thumb " <>? props.className
61− , css: Style.range props <> guard disabled Style.inputDisabled <>? props.css
61+ , css: Style.range props <> guard disabled Style.inputDisabled
6262 , type: "range"
6363 , onChange:
6464 composeHandler