Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CoverHero): new component #1144

Merged
merged 22 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add component-name to GridLayout
atabel committed Jun 17, 2024
commit e8fad1fe8770ff488318eb6c8a92f3141d1b2597
2 changes: 1 addition & 1 deletion src/grid-layout.tsx
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ const GridLayout: React.FC<Props> = ({
collapseBreakpoint = 'tablet',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this prop is new, this will allow configuring GridLayout to collapse in mobile breackpoint instead of tablet (default behaviour). This mode is required in CoverHero

children,
}) => {
const prefixedDataAttributes = getPrefixedDataAttributes(dataAttributes);
const prefixedDataAttributes = getPrefixedDataAttributes(dataAttributes, 'GridLayout');

const spanStyles = (n: number) => ({
className: classnames(styles.span, {