Skip to content

Conversation

@willnguyen1312
Copy link
Member

@willnguyen1312 willnguyen1312 commented Jan 6, 2024

WHY are these changes introduced?

The current example in documentation is broken in production
image

WHAT is this pull request doing?

Since we used empty array as initial value for sortedRows state which is truthy by default. We should stick with null to correct it and be consistent with other examples 😉

image

How to 🎩

🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines

🎩 checklist

@willnguyen1312 willnguyen1312 force-pushed the fix-sticky-header-example-from-data-table branch from 8b884f5 to f372077 Compare January 6, 2024 14:53
@PhilippeCollin PhilippeCollin requested review from a team and removed request for a team January 30, 2024 15:29
Copy link
Member

@sam-b-rose sam-b-rose left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this example!

Can you recreate the changeset to be a patch update to the polaris.shopify.com package?

@willnguyen1312 willnguyen1312 force-pushed the fix-sticky-header-example-from-data-table branch from f372077 to 206cc53 Compare January 31, 2024 20:25
@willnguyen1312
Copy link
Member Author

willnguyen1312 commented Jan 31, 2024

Sure thing! Thanks for reviewing this, Sam 🙂

@willnguyen1312 willnguyen1312 force-pushed the fix-sticky-header-example-from-data-table branch from 206cc53 to 2c51552 Compare January 31, 2024 22:22
@willnguyen1312 willnguyen1312 force-pushed the fix-sticky-header-example-from-data-table branch from 2c51552 to 85afba9 Compare January 31, 2024 22:23
@willnguyen1312 willnguyen1312 merged commit a8fd0de into main Jan 31, 2024
@willnguyen1312 willnguyen1312 deleted the fix-sticky-header-example-from-data-table branch January 31, 2024 22:47
mateus pushed a commit that referenced this pull request Feb 5, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/stylelint-polaris@15.2.0

### Minor Changes

- [#11551](#11551)
[`ffd231e28`](ffd231e)
Thanks [@mateus](https://github.com/mateus)! - Allow
polaris/media-query-allowed-list lint rule to be disabled

## @shopify/polaris-migrator@0.27.2

### Patch Changes

- Updated dependencies
\[[`ffd231e28`](ffd231e)]:
    -   @shopify/stylelint-polaris@15.2.0

## polaris.shopify.com@0.62.5

### Patch Changes

- [#11405](#11405)
[`a8fd0dec9`](a8fd0de)
Thanks [@willnguyen1312](https://github.com/willnguyen1312)! - Fixed
sticky header example in docs

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
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.

3 participants