Skip to content

Commit

Permalink
fixing things
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire.Nicholas authored and Claire.Nicholas committed Nov 1, 2023
1 parent 923ae0c commit eceaf12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/elm/Pages/Build/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ viewPreview msgs openMenu showMenu now zone org repo showTimestamp build =

buildMenuAttributeList : List (Html.Attribute msg)
buildMenuAttributeList =
-- TODO: validate what swapping the order of these did
Util.open (List.member build.id openMenu) ++ [ id "build-actions" ]

restartBuild : Html msgs
Expand Down Expand Up @@ -197,7 +196,7 @@ viewPreview msgs openMenu showMenu now zone org repo showTimestamp build =
details (buildMenuBaseClassList :: buildMenuAttributeList)
[ summary [ class "summary", Util.onClickPreventDefault (msgs.toggle (Just build.id) Nothing), Util.testAttribute "build-menu" ]
[ text "Actions"
, FeatherIcons.chevronDown |> FeatherIcons.withSize 20 |> FeatherIcons.withClass "details-icon-expand" |> FeatherIcons.toHtml [ attribute "aria-label" "Start-Step-Logs" ]
, FeatherIcons.chevronDown |> FeatherIcons.withSize 20 |> FeatherIcons.withClass "details-icon-expand" |> FeatherIcons.toHtml [ attribute "aria-label" "show build actions" ]
]
, ul [ class "build-menu", attribute "aria-hidden" "true", attribute "role" "menu" ]
[ restartBuild
Expand Down Expand Up @@ -446,7 +445,7 @@ viewStepDetails model msgs rm step =
[ div [ class "-name" ] [ text step.name ]
, div [ class "-duration" ] [ text <| Util.formatRunTime model.time step.started step.finished ]
]
, FeatherIcons.chevronDown |> FeatherIcons.withSize 20 |> FeatherIcons.withClass "details-icon-expand" |> FeatherIcons.toHtml [ attribute "aria-label" "Start-Step-Logs" ]
, FeatherIcons.chevronDown |> FeatherIcons.withSize 20 |> FeatherIcons.withClass "details-icon-expand" |> FeatherIcons.toHtml [ attribute "aria-label" "show build actions" ]
]
, div [ class "logs-container" ] [ viewStepLogs msgs.logsMsgs model.shift rm step ]
]
Expand Down Expand Up @@ -1061,7 +1060,7 @@ followButton followStep resourceType number following =
, onClick <| followStep toFollow
, attribute "aria-label" <| tooltip ++ " for " ++ resourceType ++ " " ++ number
]
[ icon |> FeatherIcons.toHtml [ attribute "role" "img", attribute "aria-label" "Start-Step-Logs" ] ]
[ icon |> FeatherIcons.toHtml [ attribute "role" "img", attribute "aria-label" "show build actions" ] ]


{-| viewResourceError : checks for build error and renders message
Expand Down
2 changes: 1 addition & 1 deletion src/scss/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ nav {
color: var(--color-black);

list-style-type: none;
background-color: var(--color-bg-darkest);
background-color: var(--color-bg-dark);
}

li {
Expand Down
2 changes: 0 additions & 2 deletions src/scss/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// dark theme (default)
body,
body.theme-dark {
--color-bg-darkest: var(--color-coal-dark);
--color-bg-dark: var(--color-coal-dark);
--color-bg: var(--color-coal);
--color-bg-light: var(--color-coal-light);
Expand All @@ -29,7 +28,6 @@ body.theme-dark {

// light theme
body.theme-light {
--color-bg-darkest: var(--color-gray-light);
--color-bg-dark: var(--color-gray-light);
--color-bg: var(--color-offwhite);
// --color-bg-light: var(--color-white);
Expand Down

0 comments on commit eceaf12

Please sign in to comment.