Skip to content

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Apr 2, 2019

WHY are these changes introduced?

Currently the Scrollable is trying to pass the polaris context object into a div in the Scrollable component. That seems somewhat silly, lets not do that.

You can see this in action by visiting https://polaris-react.herokuapp.com/?selectedKind=All%20Components%7CScrollable&selectedStory=Default%20scrollable%20container&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel then running document.querySelector('[class^="Scrollable-Scrollable"]') in your console and seeing that it has an attribute polaris="[object Object]"

WHAT is this pull request doing?

This PR plucks the polaris context out of the list of properties that get passed into the div.

How to 🎩

Follow the above steps in your local storybook and see that the polaris="[object Object]" attribute is removed

@BPScott BPScott temporarily deployed to polaris-react-pr-1271 April 2, 2019 01:25 Inactive
@BPScott BPScott merged commit 9f02629 into master Apr 2, 2019
@alex-page alex-page temporarily deployed to production April 22, 2019 19:26 Inactive
@kaelig kaelig deleted the scrollable-dont-pass-polaris branch April 26, 2019 20:55
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