Skip to content

Commit

Permalink
configurable card fade surface background
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Aug 29, 2023
1 parent 67d5c8f commit 2737b3a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/UI/EmptyStateCard.elm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ asCard emptyState =
|> Card.asContainedWithFade


asCard_ : Card.SurfaceBackgroundColor -> EmptyState msg -> Card msg
asCard_ surfaceBackground emptyState =
Card.card
[ div [ class "empty-state-card" ] [ EmptyState.view emptyState ]
]
|> Card.asContainedWithFade_ surfaceBackground


view : EmptyState msg -> Html msg
view =
asCard >> Card.view


view_ : Card.SurfaceBackgroundColor -> EmptyState msg -> Html msg
view_ surfaceBackground emptyState =
emptyState |> asCard_ surfaceBackground |> Card.view

0 comments on commit 2737b3a

Please sign in to comment.