Skip to content

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Apr 9, 2019

WHY are these changes introduced?

Following up on #1196. We are looking at deprecating the concept of bundled icons in the future so lets get our house in order first.

WHAT is this pull request doing?

Changes cases where we pass a string into <Button icon> into passing in a component from polaris-icons.

E.g.

Old:

<Button icon="cancelSmall">

New:

import {CancelSmallMinor} from '@shopify/polaris-icons';
//...
<Button icon={CancelSmallMinor}>

How to 🎩

Check Banner, Calloutcard, Navigation, DatePicker, PageHeader and ResourceList in storybook and see that the icons still render the same

@BPScott BPScott requested a review from amrocha April 9, 2019 23:49
@BPScott BPScott temporarily deployed to polaris-react-pr-1297 April 9, 2019 23:49 Inactive
@BPScott BPScott merged commit 47fce71 into master Apr 10, 2019
@BPScott BPScott deleted the button-icon branch April 10, 2019 00:44
@alex-page alex-page temporarily deployed to production April 22, 2019 19:26 Inactive
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