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

Grid sticky functionality fixed in full pages #2960

Conversation

adi-unni
Copy link
Contributor

@adi-unni adi-unni commented Nov 27, 2023

What is the context of this PR?

Fixes: #2835

Previously, the ons grid had the functionality to make columns sticky i.e. have the object have fixed positioning on the screen. This worked when the grid was not contained within any page however was broken when the class was applied to an object within a full page such as the base page template. The change fixes this to work within the full page and adds an additional visual regression test for testing the sticky class in full pages

Additional documentation about this class is also needed and the new VR example can be used for demonstration see ticket: #2969

How to review this PR

Describe the steps required to test the changes (include screenshots if appropriate).

Navigate to the new regression test within the table component and check that the contents section on the page remains in place whilst scrolling.

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@adi-unni adi-unni added the Bug Something isn't working label Nov 27, 2023
@adi-unni adi-unni self-assigned this Nov 27, 2023
@adi-unni adi-unni linked an issue Nov 27, 2023 that may be closed by this pull request
14 tasks
Copy link

netlify bot commented Nov 27, 2023

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit af7b3d4
🔍 Latest deploy log https://app.netlify.com/sites/ons-design-system-preview/deploys/657989f4ea45e60008db4c1e
😎 Deploy Preview https://deploy-preview-2960--ons-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@adi-unni adi-unni changed the title ons-grid__col sticky css functions in full pages Grid sticky functionality fixed in full pages Nov 27, 2023
@adi-unni adi-unni marked this pull request as ready for review December 5, 2023 09:41
Copy link
Contributor

@rmccar rmccar left a comment

Choose a reason for hiding this comment

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

Other than these two minor content things, looks good

@rmccar
Copy link
Contributor

rmccar commented Dec 5, 2023

Actually maybe we should add a test to this. One that loads the page example, scrolls to the bottom and checks that the table of contents is still in view. Will stop the bug breaking again.

@adi-unni
Copy link
Contributor Author

adi-unni commented Dec 5, 2023

Actually maybe we should add a test to this. One that loads the page example, scrolls to the bottom and checks that the table of contents is still in view. Will stop the bug breaking again.

Okay sure, I will work on that test and add it in

@alessioventuriniAND
Copy link
Contributor

All look sgood to me :) One note for next time , I have noticed that your branch doesn't follow the convention stated in the docs here. You can leave this branch names as it is but let's make sure to all stick to the rule defined in the docs :)

@rmccar
Copy link
Contributor

rmccar commented Dec 11, 2023

Other than my comments still needing to be addressed and the tests failing this now looks good

@alessioventuriniAND alessioventuriniAND merged commit 19fa3e4 into main Dec 13, 2023
9 checks passed
@alessioventuriniAND alessioventuriniAND deleted the 2835/bug/ons-grid__col-sticky-css-functionality-is-broken branch December 13, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ons-grid__col--sticky CSS functionality is broken
3 participants