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

fix(data-table): add prop to disable header stickiness #1322

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

jonnybel
Copy link
Contributor

@jonnybel jonnybel commented Apr 16, 2020

Summary

Regarding the DataTable: There are some cases where having a sticky header isn't desirable (such as when there are several small tables in a page, and/or inside CollapsiblePanels).

This PR adds a prop to allow disabling such behaviour: disableHeaderStickiness.

(Yes, this prop existed in the early development of the new Table but was removed temporarily.)

@jonnybel jonnybel added the 💅 Type: Enhancement Improves existing code label Apr 16, 2020
@jonnybel jonnybel self-assigned this Apr 16, 2020
@vercel
Copy link

vercel bot commented Apr 16, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/commercetools/ui-kit/6djumwq7a
✅ Preview: https://ui-kit-git-ja-add-disable-sticky-prop.commercetools.now.sh

Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

Nice. Even following Mr @pa3 latest wish for APIs :)

@jonnybel jonnybel merged commit 39698ef into master Apr 16, 2020
@jonnybel jonnybel deleted the ja-add-disable-sticky-prop branch April 16, 2020 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💅 Type: Enhancement Improves existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants