Skip to content

Commit 00bc5eb

Browse files
committed
fix id attr on headers + fix hidden overflow on PageHero buttons
1 parent d96abc7 commit 00bc5eb

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/components/PageHero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const PageHero: React.FC<IProps> = ({
8888
{subtitle}
8989
</Box>
9090
{buttons && (
91-
<Wrap spacing={2}>
91+
<Wrap spacing={2} overflow="visible">
9292
{buttons.map((button, idx) => {
9393
if (isButtonLink(button)) {
9494
return (

src/pages/layer-2.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useI18next, useTranslation } from "gatsby-plugin-react-i18next"
66
import {
77
Badge,
88
Box,
9+
BoxProps,
910
Center,
1011
Divider,
1112
DividerProps,
@@ -72,20 +73,20 @@ const SectionHeading = (props: HeadingProps) => {
7273
return <Heading {...mergeProps} />
7374
}
7475

75-
const ContentBox = (
76-
props: HTMLAttributes<"div"> & {
77-
children: ReactNode
78-
isLightGrayBg?: boolean
79-
}
80-
) => (
76+
const ContentBox = ({
77+
isLightGrayBg,
78+
...rest
79+
}: BoxProps & {
80+
children: ReactNode
81+
isLightGrayBg?: boolean
82+
}) => (
8183
<Box
8284
px={8}
8385
py={12}
8486
width="full"
85-
{...(props.isLightGrayBg && { background: "layer2ContentSecondary" })}
86-
>
87-
{props.children}
88-
</Box>
87+
{...(isLightGrayBg && { background: "layer2ContentSecondary" })}
88+
{...rest}
89+
/>
8990
)
9091

9192
const StyledInfoIcon = () => (

0 commit comments

Comments
 (0)