Skip to content

Commit

Permalink
fix: set responsive paddings on PageHeading
Browse files Browse the repository at this point in the history
  • Loading branch information
gciotola committed Nov 8, 2024
1 parent b503442 commit fdec29c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('PageHeading gap', () => {
id: 'heading',
title: 'My Page Heading'
})
expect(element).toHaveClass('pt-10 pb-14')
expect(element).toHaveClass('pt-5 md:pt-10 pb-6 md:pb-14')
})

test('Should have gap only on top', () => {
Expand All @@ -78,8 +78,8 @@ describe('PageHeading gap', () => {
title: 'My Page Heading',
gap: 'only-top'
})
expect(element).toHaveClass('pt-10')
expect(element).not.toHaveClass('pb-14')
expect(element).toHaveClass('pt-5 md:pt-10')
expect(element).not.toHaveClass('pb-6 md:pb-14')
})

test('Should have no vertical gap', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ const PageHeading = withSkeletonTemplate<PageHeadingProps>(
className={cn([
'w-full',
{
'pt-10 pb-14': gap === 'both',
'pt-10': gap === 'only-top',
'pb-14': gap === 'only-bottom'
'pt-5 md:pt-10 pb-6 md:pb-14': gap === 'both',
'pt-5 md:pt-10': gap === 'only-top',
'pb-6 md:pb-14': gap === 'only-bottom'
}
])}
{...rest}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`PageLayout > Should be rendered 1`] = `
class="mb-14"
>
<div
class="w-full pt-10 pb-14"
class="w-full pt-5 md:pt-10 pb-6 md:pb-14"
>
<h1
class="font-semibold text-2xl md:text-title leading-title break-words"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`PageSkeleton > Should be rendered 1`] = `
class="select-none pointer-events-none inline"
>
<div
class="w-full pt-10"
class="w-full pt-5 md:pt-10"
>
<div
class="mb-4 flex items-center justify-between"
Expand Down

0 comments on commit fdec29c

Please sign in to comment.