Skip to content

Commit ba10515

Browse files
authored
Merge pull request #10861 from amit-ksh/page-hero-buttons-margin
Align button container with text
2 parents c64304f + c9aa8a9 commit ba10515

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/PageHero.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ const PageHero: React.FC<IProps> = ({
9595
{subtitle}
9696
</Text>
9797
{buttons && (
98-
<Wrap spacing={2} overflow="visible">
98+
// FIXME: remove the `ul` override once removed the corresponding
99+
// global styles in `src/@chakra-ui/gatsby-plugin/styles.ts`
100+
<Wrap spacing={2} overflow="visible" sx={{ ul: { m: 0 } }}>
99101
{buttons.map((button, idx) => {
100102
if (isButtonLink(button)) {
101103
return (

src/templates/roadmap.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ const RoadmapPage = ({
227227
<Title>{mdx.frontmatter.title}</Title>
228228
<Text>{mdx.frontmatter.description}</Text>
229229
{mdx?.frontmatter?.buttons && (
230-
<Wrap spacing={2} marginBottom={4}>
230+
// FIXME: remove the `ul` override once removed the corresponding
231+
// global styles in `src/@chakra-ui/gatsby-plugin/styles.ts`
232+
<Wrap spacing={2} marginBottom={4} sx={{ ul: { m: 0 } }}>
231233
{mdx.frontmatter.buttons.map((button, idx) => {
232234
if (button?.to) {
233235
return (

0 commit comments

Comments
 (0)