Skip to content

[#49] update Loading spinner #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ColorName
  • Loading branch information
kimispencer committed Jul 16, 2019
commit 48960a713906a4a6d2bc9513939e20f7b85204d7
12 changes: 6 additions & 6 deletions src/Lumi/Components/Button.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import Data.Array as Array
import Data.Char (fromCharCode)
import Data.Foldable (fold)
import Data.Maybe (Maybe(..))
import Data.Newtype (unwrap)
import Data.Nullable (Nullable, toMaybe, toNullable)
import Data.String (null)
import Data.String.CodeUnits (fromCharArray)
import Effect.Uncurried (mkEffectFn1)
import Foreign (isNull, isUndefined, unsafeToForeign)
import JSS (JSS, jss)
import Lumi.Components.Color (ColorName(..), colorNames, colors)
import Lumi.Components.Color (ColorName, colorNames, colors)
import Lumi.Components.Icon (IconType, icon)
import Lumi.Components.Loader (loader)
import Lumi.Components.Size (Size(..))
Expand Down Expand Up @@ -93,11 +94,10 @@ button = makeStateless component render
Large -> R.css { width: "24px", height: "24px" }
ExtraLarge -> R.css { width: "34px", height: "34px" }
, testId: toNullable Nothing
, color: -- colorNames.secondary
-- @TODO case of primary vs. secondary button
case toMaybe props.color of
-- Just $ ColorName "primary" -> colorNames.white
-- Just $ ColorName "secondary" -> colorNames.secondary
, color:
case map unwrap $ toMaybe props.color of
Just "primary" -> colorNames.white
Just "secondary" -> colorNames.secondary
Just _ -> colorNames.secondary
Nothing -> colorNames.secondary
, bgColor:
Expand Down
2 changes: 1 addition & 1 deletion src/Lumi/Components/Form.purs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ asyncSelectByKey getData loadOptions fromId toId toSelectOption optionRenderer =
loader
{ style: R.css { width: "20px", height: "20px", borderWidth: "2px" }
, testId: toNullable Nothing
, color: colorNames.black2
, color: colorNames.secondary
, bgColor: colorNames.white
}
Just data_' -> text body
Expand Down
4 changes: 2 additions & 2 deletions src/Lumi/Components/Select.purs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ select = makeStateless component render
loader
{ style: css { width: "20px", height: "20px", borderWidth: "2px" }
, testId: toNullable Nothing
, color: colorNames.black2
, color: colorNames.secondary
, bgColor: colorNames.white
}
else lumiSelectInputSelectedValuesElement
Expand Down Expand Up @@ -326,7 +326,7 @@ select = makeStateless component render
loader
{ style: css { width: "20px", height: "20px", borderWidth: "2px" }
, testId: toNullable Nothing
, color: colorNames.black2
, color: colorNames.secondary
, bgColor: colorNames.white
}
}
Expand Down