diff --git a/components/layout/NavButtons/index.js b/components/layout/NavButtons/index.js index 0406861a..723a4949 100644 --- a/components/layout/NavButtons/index.js +++ b/components/layout/NavButtons/index.js @@ -32,7 +32,7 @@ const NavButtons = ({ passHref={true} > setActiveType(linkLeft)} @@ -68,7 +68,7 @@ const Nav = styled.nav` > * { margin-left: 0.5em; } - ${respond(` + ${respond(` float: none; top: 40px; display: grid; @@ -88,7 +88,7 @@ const NavButton = styled.a` padding: 1em 2em; background-color: var(--neutral10); ${(p) => - p.active + p.$active ? `background-color: var(--turquoise60); color: var(--white);` : `&:hover { background-color: var(--turquoise20); @@ -99,7 +99,7 @@ const NavButton = styled.a` place-content: center; min-width: auto; padding: 0.5em; - font-size: 24px; + font-size: 24px; `)} `; diff --git a/components/layout/Tabs/index.js b/components/layout/Tabs/index.js index 69c67f53..fd68f73f 100644 --- a/components/layout/Tabs/index.js +++ b/components/layout/Tabs/index.js @@ -78,7 +78,7 @@ const Tabs = ({ children, labels, defaultTab = 0 }) => { ))} - {childrenWithPanelProps} + {childrenWithPanelProps} ); }; @@ -150,7 +150,7 @@ const TabPanel = styled.div` } ${(p) => `>*:nth-child(${ - p.active + 1 + p.$active + 1 }) {z-index: 1; opacity: 1; visibility: visible;}`} `; diff --git a/components/page/FilterBar/index.js b/components/page/FilterBar/index.js index 064a75c0..2e9f2734 100644 --- a/components/page/FilterBar/index.js +++ b/components/page/FilterBar/index.js @@ -88,7 +88,7 @@ const FilterBar = ({ filterType, setLiveRegionMessage }) => {
Filter - +
  • @@ -121,7 +121,7 @@ const FilterBar = ({ filterType, setLiveRegionMessage }) => {
    {t(`filters.sort`)} - + {sortItems.map((item, i) => { const active = query?.sort?.includes(item.slug); @@ -251,12 +251,12 @@ const ToggleButton = styled.button` const ToggleDropdown = styled.ul` position: absolute; top: 40px; - opacity: ${(p) => (p.opened ? 1 : 0)}; - visibility: ${(p) => (p.opened ? "visible" : "hidden")}; + opacity: ${(p) => (p.$opened ? 1 : 0)}; + visibility: ${(p) => (p.$opened ? "visible" : "hidden")}; width: 300px; background-color: var(--neutral20); transition: opacity 0.2s; - z-index: ${(p) => (p.opened ? 1 : -1)}; + z-index: ${(p) => (p.$opened ? 1 : -1)}; ${respond(`width: auto;`, "640px")} li {