Skip to content

Fix: correction for using childSizeResponsive.base in EqualGrid#244

Merged
krishan711 merged 2 commits into
mainfrom
fix
Jan 30, 2026
Merged

Fix: correction for using childSizeResponsive.base in EqualGrid#244
krishan711 merged 2 commits into
mainfrom
fix

Conversation

@krishan711
Copy link
Copy Markdown
Contributor

Description

Screenshots:

Checklist:

  • I have updated the CHANGELOG with a summary of my changes
  • I have updated the documentation accordingly

Copilot AI review requested due to automatic review settings January 30, 2026 12:49
@krishan711 krishan711 merged commit f8b77c1 into main Jan 30, 2026
8 checks passed
@krishan711 krishan711 deleted the fix branch January 30, 2026 12:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the Grid component where sizeResponsive.base was not being used as a fallback value when the size prop was not provided. This particularly affects EqualGrid, which can pass childSizeResponsive to Grid items without a childSize prop.

Changes:

  • Updated Grid component to use childProps.sizeResponsive?.base as a fallback before defaulting to 12
  • Added CHANGELOG entry documenting the correction

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/layouts/grid/component.tsx Added childProps.sizeResponsive?.base to the fallback chain when determining grid item size
CHANGELOG.md Documented the correction in the Unreleased section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants