Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: apply the required behavioral changes
Browse files Browse the repository at this point in the history
DC-RomanKarpov committed Feb 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ac40bbf commit f074402
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sub-blocks/BackgroundCard/BackgroundCard.tsx
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ const BackgroundCard = (props: BackgroundCardProps) => {
const theme = useTheme();
const hasBackgroundColor = backgroundColor || cardTheme !== 'default';
const borderType = hasBackgroundColor ? 'none' : border;
const areControlsInFooter = controlPosition === 'footer';
const areControlsInFooter = !paddingBottom && controlPosition === 'footer';

return (
<CardBase
Original file line number Diff line number Diff line change
@@ -119,7 +119,11 @@ const ControlPositionTemplate: StoryFn<BackgroundCardProps> = (args) => (
</CardLayout>
</BlockBase>
<BlockBase>
<CardLayout title="With controlPosition = footer" animated={false}>
<CardLayout
title="With controlPosition = footer"
description="Please note that the controlPosition prop manages the position of buttons and links only when paddingBottom = default."
animated={false}
>
{data.cardLayout.items.map((item, index) => (
<BackgroundCard
key={index}

0 comments on commit f074402

Please sign in to comment.