Skip to content

Commit

Permalink
feat: Better button for back to dataset button
Browse files Browse the repository at this point in the history
fix #248
  • Loading branch information
ptbrowne committed Jan 20, 2022
1 parent 3d0fd6f commit fb68550
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions app/configurator/components/select-dataset-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Trans } from "@lingui/macro";
import NextLink from "next/link";
import { Router, useRouter } from "next/router";
import React, { useMemo } from "react";
import { Box, Link, Text } from "theme-ui";
import { Box, Button, Link, Text } from "theme-ui";
import { useDebounce } from "use-debounce";
import { DataSetHint } from "../../components/hint";
import { useDataCubesQuery } from "../../graphql/query-hooks";
Expand Down Expand Up @@ -86,18 +86,18 @@ export const SelectDatasetStepContent = () => {
>
<PanelLeftWrapper
raised={false}
sx={{ mt: "2.25rem", bg: "transparent" }}
sx={{ pt: "1.25rem", bg: "transparent" }}
>
{dataset ? (
<>
<Box px={4}>
<NextLink passHref href={backLink}>
<Link variant="primary">
<Button variant="secondary">
{" "}
<Trans id="dataset-preview.back-to-results">
Back to the list
</Trans>
</Link>
</Button>
</NextLink>
</Box>
<DataSetMetadata sx={{ mt: "3rem" }} dataSetIri={dataset} />
Expand Down
10 changes: 7 additions & 3 deletions app/themes/federal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export const theme: Theme = {
secondaryActive: "#454545",
secondaryDisabled: "#a6a6a6",

secondaryButton: "#d8e8ef",
secondaryButtonHover: "#CCDFE7",

success: "#3c763d",
successHover: "#3c763d",
successActive: "#3c763d",
Expand Down Expand Up @@ -311,12 +314,13 @@ export const theme: Theme = {
},
secondary: {
variant: "buttons.primary",
bg: "secondary",
bg: "secondaryButton",
color: "primary",
":hover": {
bg: "secondaryHover",
bg: "secondaryButtonHover",
},
":active": {
bg: "secondaryHover",
bg: "secondaryButtonHover",
},
":disabled": {
cursor: "initial",
Expand Down

0 comments on commit fb68550

Please sign in to comment.