Skip to content

Commit 4eda577

Browse files
committed
style: make button contrast higher on action modals
1 parent 4c00951 commit 4eda577

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

Diff for: src/Components/ActionPanel.elm

+2-2
Original file line numberDiff line numberDiff line change
@@ -1346,14 +1346,14 @@ viewStep1 op model =
13461346
, div [ class "field level is-mobile" ]
13471347
[ div [ class "level-left" ]
13481348
[ button
1349-
[ class "button is-light"
1349+
[ class "button"
13501350
, onClick (OnCloseModalSafe "" "")
13511351
]
13521352
[ text T.cancel ]
13531353
]
13541354
, div [ class "level-right" ]
13551355
[ button
1356-
[ class ("button defaultSubmit is-light is-" ++ color)
1356+
[ class ("button defaultSubmit is-" ++ color)
13571357
, classList [ ( "is-loading", isLoading ) ]
13581358
, disabled (not (isSendable model) || isLoading)
13591359
, onClick (OnSubmit OnActionSubmit)

Diff for: src/Components/MoveTension.elm

+3-3
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ viewModalContent op model =
620620
[ span [ attribute "aria-controls" "target-menu" ]
621621
[ if List.member model.form.target.nameid [ "", model.target ] then
622622
span
623-
[ class "button is-small is-light is-inverted" ]
623+
[ class "button is-small s-light is-inverted" ]
624624
[ text T.selectADestination, span [ class "ml-2 icon-chevron-down1" ] [] ]
625625

626626
else
@@ -661,14 +661,14 @@ viewModalContent op model =
661661
, div [ class "field level is-mobile" ]
662662
[ div [ class "level-left" ]
663663
[ button
664-
[ class "button is-light"
664+
[ class "button"
665665
, onClick (OnCloseSafe "" "")
666666
]
667667
[ text T.cancel ]
668668
]
669669
, div [ class "level-right" ]
670670
[ button
671-
[ class ("button defaultSubmit is-light is-" ++ color)
671+
[ class ("button defaultSubmit is-" ++ color)
672672
, classList [ ( "is-loading", isLoading ) ]
673673
, disabled (not isSendable || isLoading)
674674
, onClick (OnSubmit <| OnMove)

Diff for: src/Form/NewTension.elm

+3-2
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,8 @@ viewCircle op model =
16381638
]
16391639
, div [ class "level-right" ]
16401640
[ div [ class "buttons" ]
1641-
[ if model.simplifiedView then
1641+
-- Make this as simply at possible / to complex for user from now...
1642+
[ if model.simplifiedView || True then
16421643
text ""
16431644

16441645
else
@@ -1854,7 +1855,7 @@ viewInviteRole model =
18541855
, div [ class "field" ]
18551856
[ div [ class "is-pulled-right" ]
18561857
[ button
1857-
[ class "button is-light is-link"
1858+
[ class "button is-link"
18581859
, classList [ ( "is-loading", isLoading ) ]
18591860
, disabled (not (isUsersSendable form.users) || isLoading)
18601861
, onClick (OnSubmit (not isLoading) OnInvite)

Diff for: src/Query/QueryNode.elm

+4-1
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,10 @@ notifEventPayload =
14711471

14721472
getOrgaInfo url username nameid msg =
14731473
makeGQLQuery url
1474-
(SelectionSet.map2 (\x y -> Maybe.map (\oi -> { oi | n_projects = unwrap2 0 .count y }) x)
1474+
(SelectionSet.map2
1475+
(\x y ->
1476+
Maybe.map (\oi -> { oi | n_projects = unwrap2 0 .count y }) x
1477+
)
14751478
(Query.getNode (nidFilter nameid) (orgaInfoPayload username))
14761479
(Query.aggregateProject (\a -> { a | filter = Present <| Input.buildProjectFilter (\x -> { x | rootnameid = Present { eq = Present nameid, in_ = Absent }, status = Present { eq = Present ProjectStatus.Open, in_ = Absent } }) })
14771480
(SelectionSet.map Count Fractal.Object.ProjectAggregateResult.count)

0 commit comments

Comments
 (0)