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

DOCS-232 Fix holy grail layout content width #2402

Merged
merged 2 commits into from
Dec 13, 2021

Conversation

mikemai2awesome
Copy link
Collaborator

Jira

https://pegadigitalit.atlassian.net/browse/DOCS-232

Summary

Fixes a grid width issue with the Holy Grail Layout that causes responsive tables to not render correctly.

Details

Use 1fr in CSS grid template is causing certain components miscalculate the width of its parent container. It has been changed to minmax(0, 1fr) as a fix. 0 min-width straightens out the issue.

How to test

Run the branch locally and check the Holy Grail Layout docs. The table in the use case demo should be able to horizontally scroll when the viewport is smaller than ~1000px.

Copy link
Contributor

@colbytcook colbytcook left a comment

Choose a reason for hiding this comment

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

Approved, confirmed using all the Mac browsers, Firefox, Edge, Chrome, Safari

Copy link
Collaborator

@danielamorse danielamorse left a comment

Choose a reason for hiding this comment

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

@mikemai2awesome looks good, works as expected.

Should we add a comment here about why we use minmax() instead of just 1fr?

@colbytcook colbytcook had a problem deploying to bugfix/docs-232-holy-grail-content-width--eeb2aece--commit-preview December 13, 2021 19:36 Failure
@danielamorse danielamorse merged commit 9b03d42 into master Dec 13, 2021
@danielamorse danielamorse deleted the bugfix/docs-232-holy-grail-content-width branch December 13, 2021 19:38
@colbytcook colbytcook mentioned this pull request Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bugfix List this PR in the 'Bug Fixes' section of the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants