Skip to content

Commit

Permalink
add Css classes to spans and divs for more control
Browse files Browse the repository at this point in the history
  • Loading branch information
patritzenfeld committed Nov 29, 2024
1 parent bd4153e commit 254de24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flex-tasks/src/FlexTask/Widgets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ renderForm newId aformStub label =
$newline never
\#{fragment}
$forall view <- views
<span :fvRequired view:.required :not $ fvRequired view:.optional>
<span :fvRequired view:.required :not $ fvRequired view:.optional .flex-form-span>
<label for=#{fvId view}>#{fvLabel view}
$maybe tt <- fvTooltip view
<div .tooltip>#{tt}
Expand All @@ -55,7 +55,7 @@ joinRenders = foldr (joinOuter . joinInner) zero
joinOuter x y = applyToWidget insertDiv x $$> y
insertDiv w = [whamlet|
$newline never
<div>
<div .flex-form-div>
^{w}
|]

Expand Down

0 comments on commit 254de24

Please sign in to comment.