Skip to content

Commit

Permalink
fix: Improve printability
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfredrik committed Oct 3, 2023
1 parent f7299db commit 08bc813
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/gatsby-theme-wordpress-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@gatsbyjs/reach-router": "^1.3.6",
"@wsui/algolia": "^0.10.0",
"@wsui/base": "^0.10.0",
"@wsui/algolia": "^0.10.5",
"@wsui/base": "^0.10.5",
"gatsby": "^3.14.3",
"react": "^17.0.0",
"react-dom": "^17.0.0"
Expand All @@ -102,8 +102,8 @@
"@storybook/react-vite": "^7.0.12",
"@storybook/testing-library": "^0.1.0",
"@whitespace/storybook-addon-html": "^5.1.1",
"@wsui/algolia": "^0.10.0",
"@wsui/base": "^0.10.0",
"@wsui/algolia": "^0.10.5",
"@wsui/base": "^0.10.5",
"gatsby": "^3.14.3",
"prettier": "^2.4.1",
"react": "^17.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
handleComponentsProp,
useThemeProps,
} from "@wsui/base";
import clsx from "clsx";

import { useMenu } from "../../hooks/menus";
import useFooterBlocks from "../../hooks/useFooterBlocks";
Expand Down Expand Up @@ -39,6 +40,7 @@ export default function Footer(inProps) {
bannerBorderColor = "white",
components,
legalMenu = "LEGAL",
className,
...restProps
} = useThemeProps({
props: inProps,
Expand All @@ -58,6 +60,7 @@ export default function Footer(inProps) {
background: ${theme.getColor(color)};
color: ${theme.getColor([color, "text"])};
`}
className={clsx("wsui-screen-only", className)}
{...restProps}
>
<PageGrid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
handleComponentsProp,
useThemeProps,
} from "@wsui/base";
import clsx from "clsx";
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";

Expand Down Expand Up @@ -82,6 +83,7 @@ export default function Header(props) {
/>
<MainMenu
aria-label={t("mainMenu")}
className={clsx("wsui-screen-only")}
css={css`
align-self: stretch;
display: grid;
Expand All @@ -106,6 +108,7 @@ export default function Header(props) {
aria-label={t("menu")}
aria-expanded={String(hamburgerOpen)}
aria-controls={"header-hamburger-menu"}
className={clsx("wsui-screen-only")}
css={css`
grid-area: flyout;
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { css, useTheme } from "@emotion/react";
import { Section, handleComponentsProp, useThemeProps } from "@wsui/base";
import clsx from "clsx";
import React from "react";
import { Helmet } from "react-helmet";
import { useTranslation } from "react-i18next";
Expand Down Expand Up @@ -30,7 +31,7 @@ export default function SiteLayout(props) {
>
<Helmet htmlAttributes={{ lang: i18n.language }} />
<div>
<AlertBanner />
<AlertBanner className={clsx("wsui-screen-only")} />
<Header
css={css`
margin-bottom: ${theme.getLength(headerMargin)};
Expand Down

0 comments on commit 08bc813

Please sign in to comment.