UNPKG

150 kBMarkdownView Raw
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [these versioning and changelog guidelines](https://git.io/polaris-changelog-guidelines).
6
7<!-- Unreleased changes should go to UNRELEASED.md -->
8
9---
10
11## 4.8.0 - 2019-11-12
12
13### Enhancements
14
15- Updated `Popover` to focus the correct element when closed ([#2255](https://github.com/Shopify/polaris-react/pull/2255))
16- Updated the type of the `title` prop in `ChoiceList` from `string` to `ReactNode` ([#2355](https://github.com/Shopify/polaris-react/pull/2355))
17- Added `disabled` prop to `Filters` component ([2389](https://github.com/Shopify/polaris-react/pull/2389))
18- Added `helpText` prop to `Filters` component ([2389](https://github.com/Shopify/polaris-react/pull/2389))
19
20### Bug fixes
21
22- Fixed an issue where types were not generated for a JSON config file [#2361](https://github.com/Shopify/polaris-react/pull/2361))
23
24### Development workflow
25
26- Enabled maintainers running `yarn dev` to hide [`yarn splash`](https://github.com/Shopify/polaris-react/tree/master/scripts/splash) reports from the console by running `DISABLE_SPLASH=1 yarn dev` ([#2372](https://github.com/Shopify/polaris-react/pull/2372))
27- Updated to sewing-kit 0.112.0 and eslint 6 and updated vscode config to use the eslint plugin to format js/ts files ((#2369)[https://github.com/Shopify/polaris-react/pull/2369])
28
29### Code quality
30
31- Migrated `Popover` to use hooks ([#2386](https://github.com/Shopify/polaris-react/pull/2386))
32
33## 4.7.3 - 2019-10-31
34
35### Enhancements
36
37- Added unstable telemetry API to gather analytics about icon usage ([#2368](https://github.com/Shopify/polaris-react/pull/2368))
38
39### Bug fixes
40
41- Fixed an accessibility issue with `TextField` `multiline` where `aria-multiline` would be set to an invalid type `number` ([#2351](https://github.com/Shopify/polaris-react/pull/2351))
42- Revert [#2231](https://github.com/Shopify/polaris-react/pull/2351) as it breaks middle aligned popovers ([#2237](https://github.com/Shopify/polaris-react/pull/2237))
43- Fixed alignement of disclosure icons on `ResourceItem` ([#2370](https://github.com/Shopify/polaris-react/pull/2370))
44
45## 4.7.2 - 2019-10-30
46
47### Bug fixes
48
49- Fixed a bug with `TextField` which caused infinite layout and high CPU load in Safari, related to [WebKit Bug 194332](https://bugs.webkit.org/show_bug.cgi?id=194332) ([#2379](https://github.com/Shopify/polaris-react/pull/2379))
50- Fixed an accessibility issue with `TextField` `multiline` where `aria-multiline` would be set to an invalid type `number` ([#2351](https://github.com/Shopify/polaris-react/pull/2351))
51- Fixed alignment of disclosure icons on `ResourceItem` ([#2370](https://github.com/Shopify/polaris-react/pull/2370))
52
53### Documentation
54
55- Updated the `AppProvider` section in the Polaris [v3 to v4 migration guide](https://github.com/Shopify/polaris-react/blob/master/documentation/guides/migrating-from-v3-to-v4.md) ([#2312](https://github.com/Shopify/polaris-react/pull/2312))
56- Updated the `Using translations` section in the [AppProvider README](https://github.com/Shopify/polaris-react/blob/master/src/components/AppProvider/README.md#using-translations) ([#2312](https://github.com/Shopify/polaris-react/pull/2312))
57
58### Development workflow
59
60- Removed the need to upload assets with each release ([#2346](https://github.com/Shopify/polaris-react/pull/2346))
61
62### Code quality
63
64- Migrated `FilterValueSelector` to use hooks instead of withAppProvider ([#2156](https://github.com/Shopify/polaris-react/pull/2156))
65- Added `useIsMountedRef` hook to use while building components ([#2167](https://github.com/Shopify/polaris-react/pull/2167))
66
67## 4.7.1 - 2019-10-23
68
69### Bug fixes
70
71- Fixed a bug with `Button` which caused infinite layout and high CPU load in Safari, related to [WebKit Bug 194332](https://bugs.webkit.org/show_bug.cgi?id=194332) ([#2350](https://github.com/Shopify/polaris-react/pull/2350))
72
73## 4.7.0 - 2019-10-22
74
75### Enhancements
76
77- Updated `OptionList` section title to match `ActionList` section title ([#2300](https://github.com/Shopify/polaris-react/pull/2300))
78- Added `pressed` state to `Button` ([#2148](https://github.com/Shopify/polaris-react/pull/2148))
79- Updated the type of the `label` prop in `ChoiceList` (nested prop of `choices`) from `string` to `ReactNode` ([#2325](https://github.com/Shopify/polaris-react/pull/2325)).
80
81### Bug fixes
82
83- Fixed `actionGroups` to only render `MenuActions` when actions are provided in the `Page` ([#2266](https://github.com/Shopify/polaris-react/pull/2266))
84- Fixed `PositionedOverlay` incorrectly calculating `Topbar.UserMenu` `Popover` width ([#2231](https://github.com/Shopify/polaris-react/pull/2231))
85- Fixed `recolor-icon` Sass mixin to properly scope `$secondary-color` to the child `svg` ([#2298](https://github.com/Shopify/polaris-react/pull/2298))
86- Fixed an issue with the `ResourceList` component where the plural resource name was not used for `totalItemsCount` ([#2301](https://github.com/Shopify/polaris-react/issues/2301))
87- Fixed Stack Item proportion when shrinking ([#2319](https://github.com/Shopify/polaris-react/pull/2319))
88- Fixed animation of `Collapsible` with children having margins ([#1980](https://github.com/Shopify/polaris-react/pull/1980))
89- Added vertical adjustment to `OptionList` control items ([#2313](https://github.com/Shopify/polaris-react/pull/2313))
90
91### Dependency upgrades
92
93- Updated sewing-kit to v0.111.0 and storybook to v5.2.4 ([#2326](https://github.com/Shopify/polaris-react/pull/2326))
94
95## 4.6.1 - 2019-10-17
96
97### Enhancements
98
99- Added CSS custom properties to `Portal` container ([#2306](https://github.com/Shopify/polaris-react/pull/2306))
100
101### Bug fixes
102
103- Fixed a regression with the positioning of the `Popover` component ([#2305](https://github.com/Shopify/polaris-react/pull/2305))
104
105## 4.6.0 - 2019-10-16
106
107### Enhancements
108
109- Added a `totalItemsCount` prop to the `ResourceList` component ([#2233](https://github.com/Shopify/polaris-react/pull/2233))
110- Prevented the `Header` primary action label on the `Page` component from wrapping when the title is too long ([#2262](https://github.com/Shopify/polaris-react/pull/2262))
111
112### Bug fixes
113
114- Fixed an issue with the `Stack` component where a `Stack.Item` was not getting a minimum width ([#2273](https://github.com/Shopify/polaris-react/pull/2273))
115- Fixed an issue with `Filters` applying inconsistent border styles to sibling filters when
116 there is only one filter in the filter list ([#2284](https://github.com/Shopify/polaris-react/pull/2284))
117- Added `aria-disabled` to the `Select` component’s content when it is disabled ([#2281](https://github.com/Shopify/polaris-react/pull/2281))
118
119### Documentation
120
121- Added accessibility documentation for the `DropZone` component ([#2243](https://github.com/Shopify/polaris-react/pull/2243))
122- Improved accessibility documentation for the `Spinner` component ([#2258](https://github.com/Shopify/polaris-react/pull/2258))
123
124### Development workflow
125
126- Added support for context customization in Storybook using addon-contexts ([#2281](https://github.com/Shopify/polaris-react/pull/2281))
127
128### Code quality
129
130- Migrated `DateSelector` to use hooks instead of withAppProvider ([#2193](https://github.com/Shopify/polaris-react/pull/2193))
131- Migrated `Toast` to use hooks ([#2222](https://github.com/Shopify/polaris-react/pull/2222))
132- Removed `link`, `theme` and `scrollLockManager` from the object returned by `withAppProvider` as nothing consumes them any more ([#2277](https://github.com/Shopify/polaris-react/pull/2277))
133
134## 4.5.0 - 2019-10-08
135
136### Enhancements
137
138- Added `showTotalsInFooter` prop to `DataTable` for control over placement of “Totals” row ([#2200](https://github.com/Shopify/polaris-react/pull/2200))
139- Removed the need for z-indexes in `Icon` ([#2207](https://github.com/Shopify/polaris-react/pull/2207))
140- Added `hasFocusableParent` to `Spinner` ([#2176](https://github.com/Shopify/polaris-react/pull/2176))
141
142### Bug fixes
143
144- Fixed tabs that don’t wrap correctly on small screens in pre-iOS 13 Safari ([#2232](https://github.com/Shopify/polaris-react/pull/2232))
145- Fixed `BulkActions` checkbox losing selection on focus ([#2138](https://github.com/Shopify/polaris-react/pull/2138))
146- Moved rendering of the portal component’s node within the node created by the theme provider component to enable theming through CSS Custom Properties ([#2224](https://github.com/Shopify/polaris-react/pull/2224))
147- Fixed a bug which caused the `Popover` overlay to remain in the DOM if it was updated during exiting ([#2246](https://github.com/Shopify/polaris-react/pull/2246))
148- Fixed `Breadcrumbs` to use `accessibilityLabel` prop when passed in ([#2254](https://github.com/Shopify/polaris-react/pull/2254))
149
150### Documentation
151
152- Added accessibility documentation for the date picker component ([#2242](https://github.com/Shopify/polaris-react/pull/2242))
153- Added accessibility documentation for the empty state component ([#2244](https://github.com/Shopify/polaris-react/pull/2244))
154
155### Code quality
156
157- Improved code quality for the theme provider component ([#2225](https://github.com/Shopify/polaris-react/pull/2225)):
158
159 - updated type for `theme` prop to `ThemeConfig` to distinguish from the type `Theme` which is shared over context. A `Theme` contains only the logo properties, while `ThemeConfig` can contain a `colors` property.
160 - converted `ThemeProvider` to use hooks
161 - created symmetry in context between app provider and test provider
162 - added better tests for default topBar colors
163 - fixed an issue where `colorToHsla` returned HSLA strings instead of HSLA objects when given HSL or HSLA strings
164 - fixed an issue with `colorToHsla` where RGB colors with no saturation could result in a divide by zero error
165 - fixed an issue where `colorToHsla` inconsistently returned an alpha value
166 - fixed an issue where `lightenColor` and `darkenColor` would lighten or darken absolute lightness values (0, 100)
167
168## 4.4.0 - 2019-10-03
169
170### Enhancements
171
172- Removed the need for z-indexes in `Icon` ([#2207](https://github.com/Shopify/polaris-react/pull/2207))
173- Added `features` prop to `AppProvider` ([#2204](https://github.com/Shopify/polaris-react/pull/2204))
174
175### Bug fixes
176
177- Fixed loss of focus on `TextField` when changing connectedRight/connectedLeft content while user is typing ([#2170](https://github.com/Shopify/polaris-react/pull/2170))
178- Fixed `type` for clearButton ([#2060](https://github.com/Shopify/polaris-react/pull/2060))
179- Prevented the `onSelect` prop of `Tabs` from changing scroll position ([#2196](https://github.com/Shopify/polaris-react/pull/2196))
180- Fixed 200ms visual delay when activating `Popover` ([#2209](https://github.com/Shopify/polaris-react/pull/2209))
181- Removed the `ResourceList` `Item` hover state when `Item` is deselected ([#1952](https://github.com/Shopify/polaris-react/pull/1952))
182- Fixed `Subheading`’s `font-weight` ([#2218](https://github.com/Shopify/polaris-react/pull/2218))
183- Fixed `fullWidth` `CardSection`s when contained in a page with a `Nav` ([#2227](https://github.com/Shopify/polaris-react/pull/2227))
184
185### Documentation
186
187- Converted `SettingToggle`, `Sheet`, and `Tabs` examples to functional components ([#2134](https://github.com/Shopify/polaris-react/pull/2134))
188- Converted `Form`, `Frame`, and `Loading` examples to functional components ([#2130](https://github.com/Shopify/polaris-react/pull/2130))
189- Replaced Latin abbreviations with English words in Text field content guidelines ([#2192](https://github.com/Shopify/polaris-react/pull/2192))
190- Converted `SettingToggle`, `Sheet`, and `Tabs` examples to functional components ([#2134](https://github.com/Shopify/polaris-react/pull/2134))
191- Converted `DatePicker`, `DropZone`, and `Filters` examples to functional components ([#2129](https://github.com/Shopify/polaris-react/pull/2129))
192
193### Code quality
194
195- Added `MediaQueryProvider` to ease the use of media queries and reduce duplication ([#2117](https://github.com/Shopify/polaris-react/pull/2117))
196- Migrated `Tab` to use hooks instead of `withAppProvider` ([#2123](https://github.com/Shopify/polaris-react/pull/2123))
197
198### Development workflow
199
200- Added a GitHub action, [discoverability-action](https://github.com/Shopify/discoverability-action), that runs `yarn splash` on PR diffs and leaves a comment with the output ([#2208](https://github.com/Shopify/polaris-react/pull/2208))
201
202## 4.3.0 - 2019-09-23
203
204### Enhancements
205
206- Added new label prop to `Pagination` which is used to insert contextual info between navigation buttons ([#2098](https://github.com/Shopify/polaris-react/pull/2098))
207- Updated `trigger` to use `act` ([#2141](https://github.com/Shopify/polaris-react/pull/2141))
208- Changed border color of `Drop zone` to have better contrast from the background and to be lighter when disabled ([#2119](https://github.com/Shopify/polaris-react/pull/2119))
209- Adjusted search results overlay to take up 100% height of the screen on small screens and to match the width of the search bar on large screens. ([#2103](https://github.com/Shopify/polaris-react/pull/2103))
210- Added skipToContentTarget prop to Frame component ([#2080](https://github.com/Shopify/polaris-react/pull/2080))
211
212### Bug fixes
213
214- Updated `Card` footer actions to be left aligned instead of right by default ([#2075](https://github.com/Shopify/polaris-react/issues/2075))
215- Fixed vertical alignment of Tabs disclosure activator ([#2087](https://github.com/Shopify/polaris-react/pull/2087))
216- Fixed `Modal` setting an invalid `id` on `aria-labelledby` when no `title` is set ([#2115](https://github.com/Shopify/polaris-react/pull/2115))
217- Fixed error warnings in `Card` and `RollupActions` tests ([#2125](https://github.com/Shopify/polaris-react/pull/2125))
218- Fixed modal border not being visible in Windows high contrast mode ([#2114](https://github.com/Shopify/polaris-react/pull/2114))
219- Added default accessibility label from `ResourceItem` ([#2097](https://github.com/Shopify/polaris-react/pull/2097))
220- Reverted `Page.primaryAction` forcing `primary` to be `true` ([#2137](https://github.com/Shopify/polaris-react/pull/2137))
221- Removed `React.Children.only` from `AppProvider`and `ThemeProvider` ([#2121](https://github.com/Shopify/polaris-react/pull/2121))
222- Fixed visual bug where button width changed in Filters component. Thank you to [@alexieyizhe](https://github.com/alexieyizhe) for the contribution ([#2003](https://github.com/Shopify/polaris-react/pull/2003)).
223- Changed `text-rendering` to `auto` in `Select` to prevent Safari 13 from crashing ([#2179](https://github.com/Shopify/polaris-react/pull/2179))
224
225### Documentation
226
227- Converted `Autocomplete`, `Banner`, and `ChoiceList` examples to functional components ([#2127](https://github.com/Shopify/polaris-react/pull/2127))
228- Converted `Collapsible`, `ColorPicker`, and `DataTable` examples to functional components ([#2128](https://github.com/Shopify/polaris-react/pull/2128))
229- Converted `Modal`, `OptionList`, and `Popover` examples to functional components ([#2131](https://github.com/Shopify/polaris-react/pull/2131))
230- Converted `RadioButton`, `RangeSlider`, and `ResourceItem` examples to functional components ([#2132](https://github.com/Shopify/polaris-react/pull/2132))
231- Converted `ResourceList`, `ResourcePicker`, and `Select` examples to functional components ([#2133](https://github.com/Shopify/polaris-react/pull/2133))
232- Converted `TextField`, `Toast`, and `TopBar` examples to functional components ([#2135](https://github.com/Shopify/polaris-react/pull/2135))
233- Updated the `withContext` section in the [v3 to v4 migration guide](https://github.com/Shopify/polaris-react/blob/master/documentation/guides/migrating-from-v3-to-v4.md) ([#2124](https://github.com/Shopify/polaris-react/pull/2124))
234- Clarified when to use the `external` prop on the `Link` component ([#2153](https://github.com/Shopify/polaris-react/pull/2153))
235- Updated documentation examples to include disclosure on `Popover` activators ([#2171](https://github.com/Shopify/polaris-react/pull/2171))
236
237### Development workflow
238
239- Added [`yarn splash` (beta)](/scripts/splash/), a command-line interface to observe the splash zone of a change across the component library ([#2113](https://github.com/Shopify/polaris-react/pull/2113))
240- Updated Storybook – [v5.2 release notes](https://medium.com/storybookjs/storybook-5-2-794958b9b111) ([#2157](https://github.com/Shopify/polaris-react/pull/2157))
241
242### Code quality
243
244- Added `useLazyRef` hook to use while building components ([#2166](https://github.com/Shopify/polaris-react/pull/2166))
245- Migrated `FilterCreator` to use hooks instead of withAppProvider ([#2156](https://github.com/Shopify/polaris-react/pull/2156))
246- Created a custom error for lack of context providers ([#2136](https://github.com/Shopify/polaris-react/pull/2136))
247- Migrated `ContextualSaveBar` to use hooks instead of `withAppProvider`. Thank you to [@sijad](https://github.com/sijad) for the contribution ([#2091](https://github.com/Shopify/polaris-react/pull/2091)).
248- Migrated `RangeSlider`, `ScrollLock` and `TopBar.SearchField` to use hooks instead of withAppProvider ([#2083](https://github.com/Shopify/polaris-react/pull/2083))
249- Updated `ResourceItem` to no longer rely on withAppProvider ([#2094](https://github.com/Shopify/polaris-react/pull/2094))
250- Migrated `TextField` and `Resizer` to use hooks ([#1997](https://github.com/Shopify/polaris-react/pull/1997))
251- Migrated `Avatar` to use hooks instead of withAppProvider ([#2067](https://github.com/Shopify/polaris-react/pull/2067))
252- Updated `Day` and `DatePicker` to use hooks ([#2089](https://github.com/Shopify/polaris-react/pull/2089))
253
254## 4.2.1 - 2019-09-10
255
256### Bug fixes
257
258- Fixed TypeScript not generating correct types for functional components that have subcomponents ([#2111](https://github.com/Shopify/polaris-react/pull/2111))
259
260## 4.2.0 - 2019-09-09
261
262### Enhancements
263
264- Added support for min/max dates in `TextField` by setting a string on `min` and `max` props ([#1991](https://github.com/Shopify/polaris-react/pull/1991))
265- Made the `title` prop on `Page` optional, supporting continued use of `Page` for structure in apps using the App Bridge React [`TitleBar`](https://github.com/Shopify/app-bridge/tree/master/packages/app-bridge-react/src/components/TitleBar) ([#2082](https://github.com/Shopify/polaris-react/pull/2082))
266
267### Bug fixes
268
269- Fixed inconsistent padding of sections in `Modal` ([#2072](https://github.com/Shopify/polaris-react/pull/2072))
270- Fixed animation for Modal when being rendered asynchronously ([#2076](https://github.com/Shopify/polaris-react/pull/2076))
271- Fixed item content from overflowing past the container in `Stack` ([#2071](https://github.com/Shopify/polaris-react/pull/2071))
272- Fixed `Dropzone` hover, disabled, and focus states ([#1994](https://github.com/Shopify/polaris-react/pull/1994))
273- Added `name` prop to `ResourceItem` to fix accessibility labels ([#2077](https://github.com/Shopify/polaris-react/pull/2077))
274- Fixed misalignment of `ResourceItem` actions ([#2051](https://github.com/Shopify/polaris-react/pull/2051))
275
276### Documentation
277
278- Added Android/iOS images for Plain destructive button ([#2081](https://github.com/Shopify/polaris-react/pull/2081))
279- Removed mobile mention from right-aligned text component guidelines ([#2081](https://github.com/Shopify/polaris-react/pull/2081))
280- Added mobile example images error state of Single Choice List ([#2007](https://github.com/Shopify/polaris-react/pull/2007))
281
282### Dependency upgrades
283
284- Updated Prettier to v1.18.2 ([#2070](https://github.com/Shopify/polaris-react/pull/2070))
285
286### Development workflow
287
288- Added a displayName to the function generated by the `withAppProvider` HoC for a better devtools experience ([#2093](https://github.com/Shopify/polaris-react/pull/2093))
289
290### Code quality
291
292- Migrated `ActionMenu.RollupAction`, `Autocomplete`, `Card`, `EmptySearchResult`, `Form`, `SkeletonPage` and `TopBar` to use hooks instead of withAppProvider ([#2065](https://github.com/Shopify/polaris-react/pull/2065))
293- Added `useUniqueId` hook that can be used to get a unique id that remains consistent between rerenders and updated components to use it where appropriate ([#2079](https://github.com/Shopify/polaris-react/pull/2079))
294
295## 4.1.0 - 2019-09-03
296
297### Enhancements
298
299- Moved `ResourceItem` to its own component ([#1774](https://github.com/Shopify/polaris-react/pull/1774))
300- Updated `ResourceList` sort to show an inline label ([#1774](https://github.com/Shopify/polaris-react/pull/1774))
301- Removed the `tap-highlight-color` for `Buttons` ([#1545](https://github.com/Shopify/polaris-react/pull/1545))
302
303### Bug fixes
304
305- Removed `Tooltip` on disabled `Pagination` buttons ([#1963](https://github.com/Shopify/polaris-react/pull/1963))
306- Fixed accessibility labels on `ResourceList.Item` persistent action disclosure icon ([#1973](https://github.com/Shopify/polaris-react/pull/1973))
307- Fixed accessibility issue with `Autocomplete` where keyboard navigation of options was laggy and skipped options ([#1887](https://github.com/Shopify/polaris-react/pull/1887))
308- Fixed bug where `Autocomplete` was bubbling up the `Enter` key event unexpectedly ([#1887](https://github.com/Shopify/polaris-react/pull/1887))
309- Fixed `ContextualSaveBar` actions overflowing on small screens ([#1967](https://github.com/Shopify/polaris-react/pull/1967))
310- Fixed `Tabs` rollup automatically opening from keyboard navigation of tab list ([#1933](https://github.com/Shopify/polaris-react/pull/1933))
311
312### Documentation
313
314- Updated example section to include new examples and remove old ones ([#1979](https://github.com/Shopify/polaris-react/pull/1979))
315- Updated example for the `ResourceList.Item` persistent actions accessibility labels ([#1973](https://github.com/Shopify/polaris-react/pull/1973))
316- Removed `FilterControl` documentation and case studies from `ResourceList` documentation ([#1774](https://github.com/Shopify/polaris-react/pull/1774))
317- Updated `ResourceList` examples to use `Filters` ([#1774](https://github.com/Shopify/polaris-react/pull/1774))
318- Added an example to `Filters` showing the use of `children` ([#1774](https://github.com/Shopify/polaris-react/pull/1774))
319- Added guidance for making animated gifs in PRs and issues more accessibility-friendly ([#1998](https://github.com/Shopify/polaris-react/pull/1998))
320- Added `RadioButton` guidance to make one option selected by default ([#2005](https://github.com/Shopify/polaris-react/pull/2005))
321
322### Development workflow
323
324- Update subcomponents to use named exports for components and better names props exports ([#2058](https://github.com/Shopify/polaris-react/pull/2058))
325
326### Code quality
327
328- Removed mocks in various tests suites that are now redundant ([#1978](https://github.com/Shopify/polaris-react/pull/1978))
329
330### Deprecations
331
332- Deprecated `FilterControl`. Use `Filters` instead ([#1774](https://github.com/Shopify/polaris-react/pull/1774))
333
334## 4.0.0 - 2019-08-28
335
336For instructions on updating from v3 to v4, see our [migration guide](https://github.com/Shopify/polaris-react/blob/master/documentation/guides/migrating-from-v3-to-v4.md).
337
338### Breaking changes
339
340- Removed `groups` prop on `Select`. Pass groups to the `options` prop instead. ([#1831](https://github.com/Shopify/polaris-react/pull/1831))
341- Removed `Autocomplete.ComboBox.TextField` and `Autocomplete.ComboBox.OptionList`. You should use the `Autocomplete.TextField` and `OptionList` components instead. ([#1830](https://github.com/Shopify/polaris-react/pull/1830))
342- Removed `secondaryFooterAction` prop on `Card`. Pass an array of secondary actions to the `secondaryFooterActions` prop instead. ([#1831](https://github.com/Shopify/polaris-react/pull/1831))
343- Removed `iconBody` prop on `Navigation.Item`. Pass a string to the `icon` prop instead. ([#1831](https://github.com/Shopify/polaris-react/pull/1831))
344- Removed the `WithContext` component, as it was an undocumented part of the public API meant for internal use only ([#1641](https://github.com/Shopify/polaris-react/pull/1641))
345- Removed the `WithRef` component, as it was an undocumented part of the public API meant for internal use only ([#1610](https://github.com/Shopify/polaris-react/pull/1610))
346- Removed support for passing a string into `<Icon source>` to load a bundled icon. You must load the required icon directly from `@shopify/polaris-icons` instead. ([#1604](https://github.com/Shopify/polaris-react/pull/1604))
347- Removed support for passing an `SvgSource` shaped object into `<Icon source>` to load an icon imported using Shopify’s legacy icon loader. You must update sewing-kit to at least v0.82.0 which replaced the legacy loader with using SVGR. ([#1604](https://github.com/Shopify/polaris-react/pull/1604))
348- Removed support for passing a React Element into `<Icon source>`. You must pass in a React Component that returns an SVG element instead. ([#1604](https://github.com/Shopify/polaris-react/pull/1604))
349- Removed support for `<Icon untrusted>`. Passing a string into `source` will now always load an untrusted icon, you don’t need that additional property. ([#1604](https://github.com/Shopify/polaris-react/pull/1604)).
350- Removed `Navigation.UserMenu`. Use `TopBar.UserMenu` instead. ([#1599](https://github.com/Shopify/polaris-react/pull/1599))
351- Made `title` a required prop on `ChoiceList` to improve accessibility. It can be hidden with `titleHidden`. ([#1575](https://github.com/Shopify/polaris-react/pull/1575))
352- Made `i18n` a required prop on `AppProvider`. [Usage instructions](https://polaris.shopify.com/components/structure/app-provider#using-translations) are included in the `AppProvider` docs. ([#1530](https://github.com/Shopify/polaris-react/pull/1530))
353- Upgraded `react` and `react-dom` peer-dependencies to 16.8.6 to enable the use of hooks ([#1525](https://github.com/Shopify/polaris-react/pull/1525))
354- Changed the import method for React to use default imports. Applications consuming Polaris using TypeScript must enable [`esModuleInterop`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop) in `tsconfig.json`. ([#1523](https://github.com/Shopify/polaris-react/pull/1523))
355- Removed `LinkLikeComponent` type export. Use `AppProviderProps['linkComponent']` instead. ([#1864](https://github.com/Shopify/polaris-react/pull/1864))
356- Removed the `Modal.Dialog` and `Tabs.Panel` subcomponents as they were undocumented parts of our public API meant for internal use only ([#1899](https://github.com/Shopify/polaris-react/pull/1899)).
357
358### Enhancements
359
360- Added a new `create-react-app` example in TypeScript demonstrating use of Polaris with `react-testing` ([#1937](https://github.com/Shopify/polaris-react/pull/1937))
361- Exported `AppliedFilterInterface` and `FilterInterface` from `Filters` ([#1924](https://github.com/Shopify/polaris-react/pull/1924))
362- Improved color contrast of links inside `Banner` ([#1651](https://github.com/Shopify/polaris-react/pull/1651))
363- Add underline to Links and Plain button on hover, so it doesn’t rely on color alone for accessibility ([#1885](https://github.com/Shopify/polaris-react/pull/1885))
364- Add `onQueryFocus` callback prop to the `Filters` component ([#1948](https://github.com/Shopify/polaris-react/pull/1948))
365
366### Bug fixes
367
368- Fixed types merge of `ActionMenu` `MenuAction` and `MenuGroup.actions` ([#1895](https://github.com/Shopify/polaris-react/pull/1895))
369- Fixed the activator buttons of `Page` `actionGroups` not toggling the `Popover` `active` state on click [#1905](https://github.com/Shopify/polaris-react/pull/1905)
370- Fixed Windows high contrast support of `Badge` `progress` ([#1928](https://github.com/Shopify/polaris-react/pull/1928))
371- Fixed `BulkActionButton` from throwing an error in `componentDidMount` ([#1913](https://github.com/Shopify/polaris-react/pull/1913))
372- Fixed `ToastManager` from not working correctly in `React.StrictMode` ([#1741](https://github.com/Shopify/polaris-react/pull/1741))
373- Updated translation.yml with the new locales path ([#1649](https://github.com/Shopify/polaris-react/pull/1649))
374- Fixed accessibility issue with `Tabs` list item presentation role ([#1958](https://github.com/Shopify/polaris-react/pull/1958))
375- Fixed cross-origin error being thrown in `Modal` when loading an external app ([#1992](https://github.com/Shopify/polaris-react/pull/1992))
376- Fixed regression in `PopoverOverlay` causing `onClose` to be fired when Popover is opening and trigger was not the activator ([#2000](https://github.com/Shopify/polaris-react/pull/2000))
377- Fixed issue with `ContextualSaveBar` blocking search when hidden ([#2044](https://github.com/Shopify/polaris-react/pull/2044))
378
379### Documentation
380
381- Updated `AppProvider` app bridge example to use our `AppBridgeContext` ([#1877](https://github.com/Shopify/polaris-react/pull/1877))
382
383### Development workflow
384
385- Added support for React hooks in Storybook ([#1665](https://github.com/Shopify/polaris-react/pull/1665))
386- Created `toBeDisabled`, `mountWithContext` and added custom testing matchers ([#1596](https://github.com/Shopify/polaris-react/pull/1596))
387- Added `PolarisTestProvider` helper to ease configuration of required Polaris contexts in tests, see [polaris examples](https://github.com/Shopify/polaris-react/tree/master/examples) for usage ([#1810](https://github.com/Shopify/polaris-react/pull/1810))
388- Enabled strict mode in TypeScript ([#1883](https://github.com/Shopify/polaris-react/pull/1883))
389- Moved to `unpkg.com` for our CDN CSS assets, instead of using `sdks.shopifycdn.com`. Existing URLs will continue to work but new versions will only be available at `unpkg.com`. ([#1960](https://github.com/Shopify/polaris-react/pull/1960))
390- Added [ChromaUI](https://www.chromaui.com/) integration for previewing Storybook builds, to potentially replace our self-hosted Heroku instance ([#1975](https://github.com/Shopify/polaris-react/pull/1975))
391
392### Dependency upgrades
393
394- Updated `@shopify/polaris` in all examples to 4.0.0-rc.2 ([#1937](https://github.com/Shopify/polaris-react/pull/1937))
395- Added `@material-ui/react-transition-group` and removed `react-transition-group` to support `React.StrictMode` ([#1759](https://github.com/Shopify/polaris-react/pull/1759))
396- Added `@shopify/react-testing` ([#1596](https://github.com/Shopify/polaris-react/pull/1596))
397- Removed`@shopify/css-utilities` ([#1586](https://github.com/Shopify/polaris-react/pull/1586))
398- Removed `@types/prop-types` and `prop-types` ([#1505](https://github.com/Shopify/polaris-react/pull/1505))
399- Updated`react` to 16.8.6 and `enzyme` to 3.9.1 ([#1392](https://github.com/Shopify/polaris-react/pull/1392))
400
401### Code quality
402
403- Bumped test coverage in `Collapsible` ([#1929](https://github.com/Shopify/polaris-react/pull/1929))
404- Bumped test coverage in `DropZone`, `Frame`, `Icon`, and `Loading` ([#1927](https://github.com/Shopify/polaris-react/pull/1927))
405- Removed unused type definitions ([#1862](https://github.com/Shopify/polaris-react/pull/1862))
406- Ignored deprecation warnings related to Shopify App Bridge in tests ([#1852](https://github.com/Shopify/polaris-react/pull/1852))
407- Updated `withAppProvider` to use a functional component rather than a class component ([#1813](https://github.com/Shopify/polaris-react/pull/1813))
408- Updated `Link` to use `useI18n` rather than `withAppProvider` ([#1806](https://github.com/Shopify/polaris-react/pull/1806))
409- Updated several components to use hooks instead of `withAppProvider` ([#1797](https://github.com/Shopify/polaris-react/pull/1797))
410- Removed `CSSTransition` from `PopoverOverlay` ([#1756](https://github.com/Shopify/polaris-react/pull/1756))
411- Updated exports in `src/utilities` and `src/test-utilities` to named exports ([#1717](https://github.com/Shopify/polaris-react/pull/1717))
412- Removed test errors and non-deprecation warnings ([#1715](https://github.com/Shopify/polaris-react/pull/1715))
413- Enabled `React.StrictMode` in test components and Storybook ([#1709](https://github.com/Shopify/polaris-react/pull/1709))
414- Removed all uses of `ReactDOM.findDOMNode` ([#1696](https://github.com/Shopify/polaris-react/pull/1696))
415- Enabled `react/no-unsafe` ESLint rule with `checkAliases` ([#1695](https://github.com/Shopify/polaris-react/pull/1695))
416- Alphabetized component export order and kebab-case files ([#1674](https://github.com/Shopify/polaris-react/pull/1674))
417- Updated `Collapsible` to no longer use `componentWillReceiveProps`([#1670](https://github.com/Shopify/polaris-react/pull/1670))
418- Restructured context structure to be more modular ([#1664](https://github.com/Shopify/polaris-react/pull/1664))
419- Updated `PositionedOverlay` to no longer use `componentWillReceiveProps`([#1621](https://github.com/Shopify/polaris-react/pull/1621))
420- Simplified `WithinContentContainer` context type ([#1602](https://github.com/Shopify/polaris-react/pull/1602))
421- Updated `OptionList` to no longer use `componentWillReceiveProps` ([#1557](https://github.com/Shopify/polaris-react/pull/1557))
422- Refactored `RangeSlider` `DualThumb` tests ([#1548](https://github.com/Shopify/polaris-react/pull/1548))
423- Converted `Sheet` to a functional component ([#1548](https://github.com/Shopify/polaris-react/pull/1548))
424- Removed `withContext` from `ResourceList.Item` ([#1503](https://github.com/Shopify/polaris-react/pull/1503))
425- Removed `withContext` from `Navigation.Item` ([#1502](https://github.com/Shopify/polaris-react/pull/1502))
426- Removed `withRef` from `UnstyledLink` ([#1501](https://github.com/Shopify/polaris-react/pull/1501))
427- Removed `withContext` from `ResourceList.FilterControl` ([#1500](https://github.com/Shopify/polaris-react/pull/1500))
428- Removed `withContext` from `Scrollable.ScrollTo` and added a test to boost coverage ([#1499](https://github.com/Shopify/polaris-react/pull/1499))
429- Removed `withContext` from `Loading` ([#1497](https://github.com/Shopify/polaris-react/pull/1497))
430- Removed `withContext` and `withAppProvider` from `ContextualSaveBar` ([#1498](https://github.com/Shopify/polaris-react/pull/1498))
431- Removed `withContext` from `Toast` ([#1494](https://github.com/Shopify/polaris-react/pull/1494))
432- Removed `withRef` and `withContext` from `DropZone.FileUpload` ([#1491](https://github.com/Shopify/polaris-react/pull/1491))
433- Created `useAppBridge` hook ([#1482](https://github.com/Shopify/polaris-react/pull/1482))
434- Removed testID warning in tests ([#1447](https://github.com/Shopify/polaris-react/pull/1447))
435- Updated `AppProvider` to use the new context API and refactored other instances to follow a new pattern and refactor test utilities ([#1424](https://github.com/Shopify/polaris-react/pull/1424))
436- Updated all context files to export react context rather than a provider and consumer ([#1424](https://github.com/Shopify/polaris-react/pull/1424))
437- Deleted `withSticky` ([#1424](https://github.com/Shopify/polaris-react/pull/1424))
438- Upgraded the `Autocomplete` component from legacy context API to use createContext ([#1403](https://github.com/Shopify/polaris-react/pull/1403))
439- Upgraded the `Navigation` component from legacy context API to use createContext ([#1402](https://github.com/Shopify/polaris-react/pull/1402))
440- Updated `ThemeProvider` to use the new context API ([#1396](https://github.com/Shopify/polaris-react/pull/1396))
441- Updated `AppProvider` to no longer use `componentWillReceiveProps`([#1255](https://github.com/Shopify/polaris-react/pull/1255))
442- Removed unused context from `Scrollable` ([#1253](https://github.com/Shopify/polaris-react/pull/1253))
443- Updated `ThemeProvider` to no longer use `componentWillReceiveProps` ([#1254](https://github.com/Shopify/polaris-react/pull/1254))
444- Removed context from `Collapsible` ([#1114](https://github.com/Shopify/polaris-react/pull/1114))
445- Refactored `Frame` and its subcomponents to use the `createContext` API instead of legacy context ([#803](https://github.com/Shopify/polaris-react/pull/803))
446- Upgraded the `Banner`, `Card`, and `Modal` components from legacy context API to use `createContext` ([#786](https://github.com/Shopify/polaris-react/pull/786))
447
448### Deprecations
449
450- Renamed `singleColumn`on`Page`to`narrowWidth` ([#1606](https://github.com/Shopify/polaris-react/pull/1606))
451
452## 3.21.1 - 2019-08-12
453
454### Enhancements
455
456- Added `onQueryFocus` callback prop to the `Filters` component ([#1948](https://github.com/Shopify/polaris-react/pull/1948))
457
458## 3.21.0 - 2019-07-31
459
460### Enhancements
461
462- Added a `subtitle` and `thumbnail` prop to `Page` ([#1880](https://github.com/Shopify/polaris-react/pull/1880))
463
464### Bug fixes
465
466- Fixed accessibility issue with ChoiceList errors not being correctly connected to the inputs ([#1824](https://github.com/Shopify/polaris-react/pull/1824))
467- Fixed `Tab` `aria-controls` pointing to a non-existent `Panel` `id` ([#1869](https://github.com/Shopify/polaris-react/pull/1869))
468- Fixed `Toast` accessibility issue by moving `aria-live` prop to `ToastManager` ([#1873](https://github.com/Shopify/polaris-react/pull/1873))
469
470### Code quality
471
472- Use `@shopify/typescript-configs` as the base of `tsconfig.json` for the project ([#1829](https://github.com/Shopify/polaris-react/pull/1829))
473
474## 3.20.0 - 2019-07-16
475
476### Enhancements
477
478- Added a `verticalAlign` prop to `DataTable` ([#1790](https://github.com/Shopify/polaris-react/pull/1790))
479- Improved focus and hover states for `Navigation` ([#1822](https://github.com/Shopify/polaris-react/pull/1822))
480
481### Bug fixes
482
483- Fixed the `SearchInput` clear button which was overflowing the search bar in Firefox 65+ ([#1795](https://github.com/Shopify/polaris-react/pull/1795))
484- Fixed a bug preventing the display of `Tooltip` when cursor enters from a disabled element ([#1783](https://github.com/Shopify/polaris-react/pull/1783))
485- Fixed React imports in the `Filters` component to use `import * as React` for projects that don’t use `esModuleInterop` ([#1820](https://github.com/Shopify/polaris-react/pull/1820))
486- Fixed `tabIndex` on `main` element causing event delegation issues ([#1821](https://github.com/Shopify/polaris-react/pull/1821))
487- Fixed icon color for destructive ActionList items ([#1836](https://github.com/Shopify/polaris-react/pull/1836))
488- Fixed not being able to explictly set `autoComplete` prop on`Autocomplete.TextField` ([#1839](https://github.com/Shopify/polaris-react/pull/1839))
489
490### Documentation
491
492- Added links to App Bridge React component documentation in deprecation notices for embedded components ([#1765](https://github.com/Shopify/polaris-react/pull/1765))
493- Improved link text for App Bridge deprecation notices [#1802](https://github.com/Shopify/polaris-react/pull/1802)
494
495### Development workflow
496
497- Use explicit imports for our base Sass mixins instead of having them implictly defined at build-time. This simplifes our build config and other tooling that wants to build us from source [[#1680](https://github.com/Shopify/polaris-react/pull/1680)]
498
499## 3.19.0 - 2019-07-09
500
501### New components
502
503- `Filters`: Use to filter the items of a list or table ([#1718](https://github.com/Shopify/polaris-react/pull/1718))
504
505### Enhancements
506
507- Added the rollover and Windows high contrast mode to `Disclosure` button on `Tabs` ([#1755](https://github.com/Shopify/polaris-react/pull/1755))
508- Added support for disabling all choices in `ChoiceList` ([#1758](https://github.com/Shopify/polaris-react/pull/1758))
509- Components in our Sass build (the `styles` folder) are now precompiled to avoid the chance of accidentally overwriting any of our global variables, mixins and functions ([#1764](https://github.com/Shopify/polaris-react/pull/1764))
510- Changed `Skip to content` to render an anchor instead of a button to meet accessiblity level A guidelines ([#1785](https://github.com/Shopify/polaris-react/pull/1785))
511
512### Bug fixes
513
514- Fixed a regression introduced in [#1247](https://github.com/Shopify/polaris-react/pull/1247), where icons inside of `Link` would always be recolored to match the text color ([#1729](https://github.com/Shopify/polaris-react/pull/1729))
515- Fixed the `DiscardConfirmationModal` not closing when the discard button is clicked ([#1784](https://github.com/Shopify/polaris-react/pull/1784))
516- Fixed `Navigation.Item` `secondaryAction` wrapping when content wraps ([#1678](https://github.com/Shopify/polaris-react/pull/1678))
517
518### Documentation
519
520- Added links to App Bridge React component documentation in deprecation notices for embedded components ([#1765](https://github.com/Shopify/polaris-react/pull/1765))
521
522### Development workflow
523
524- Renamed `yarn run ts` to `yarn run type-check` to match most other Shopify projects ([#1745](https://github.com/Shopify/polaris-react/pull/1745))
525- Fixed deprecation notice in build ([#1754](https://github.com/Shopify/polaris-react/pull/1754))
526- Simplified our rollup plugin for Sass compilation while retaining identical behaviour ([#1753](https://github.com/Shopify/polaris-react/pull/1753))
527
528## 3.18.0 - 2019-06-26
529
530### New components
531
532- `ActionMenu`: Use for display of actions and action groups within the context of a header ([#1653](https://github.com/Shopify/polaris-react/pull/1653))
533
534### Enhancements
535
536- Added the `stopAnnouncements` prop to `Banner`, which disables screen reader announcements when content changes ([#1719](https://github.com/Shopify/polaris-react/pull/1719))
537- Add `selectable` prop to `ResourceList` component (thanks to [@vict-shevchenko](https://github.com/vict-shevchenko) for the [pull request](https://github.com/Shopify/polaris-react/pull/1614))
538- Allow `Link` and `Button` interactions when rendered as `prefix/suffix` within `<TextField />` ([#1394](https://github.com/Shopify/polaris-react/pull/1394))
539- Improve `TextField` so that character count is only announced on focus. ([#1720](https://github.com/Shopify/polaris-react/pull/1720))
540- `ActionList` can now pass a unique `accessibilityLabel` to each `Item` ([#1653](https://github.com/Shopify/polaris-react/pull/1653))
541- Greatly reduced complexity of `Page > Header` ([#1653](https://github.com/Shopify/polaris-react/pull/1653))
542- Long `Page > Header` breadcrumb labels will now truncate instead of breaking layout ([#1653](https://github.com/Shopify/polaris-react/pull/1653))
543- Improves performance of `TabMeasure` component ([#1544](https://github.com/Shopify/polaris-react/pull/1544))
544- Added `secondaryFooterActions` prop to `Card` which adds an action list of secondary actions to the footer [#1625](https://github.com/Shopify/polaris-react/pull/1625)
545
546### Bug fixes
547
548- Fixes `monochrome` variant of `Link` and `Button` components to support multi-line link text ([#1686](https://github.com/Shopify/polaris-react/pull/1686))
549- Fixed the first column of `DataTable` not rendering in iOS Safari ([#1605](https://github.com/Shopify/polaris-react/pull/1605))
550- Fixed paint loss on scroll of `TextField` `Spinner` ([#1740](https://github.com/Shopify/polaris-react/pull/1740))
551
552### Documentation
553
554- Mentioned that the Contextual Save Bar is now available for embedded apps through App Bridge directly [#1721](https://github.com/Shopify/polaris-react/pull/1721)
555- Mentioned [Polaris icons](https://polaris-icons.shopify.com) in the Icon component documentation ([#1693](https://github.com/Shopify/polaris-react/pull/1693))
556- Added an example to `Card` for custom action layout with a secondary action and a plain button (thanks to [@sharoonthomas](https://github.com/sharoonthomas) for the [pull request](https://github.com/Shopify/polaris-react/pull/1705))
557
558### Development workflow
559
560- Updated Storybook to `v5.1.9` ([#1728](https://github.com/Shopify/polaris-react/pull/1728))
561
562### Code quality
563
564- Updated `PositionedOverlay` to no longer use `componentWillReceiveProps`([#1621](https://github.com/Shopify/polaris-react/pull/1621))
565
566### Deprecations
567
568- `Card` `secondaryFooterAction` is now deprecated. Set an array of secondary actions on the `secondaryFooterActions` prop instead [#1625](https://github.com/Shopify/polaris-react/pull/1625)
569
570## 3.17.0 - 2019-06-11
571
572### Deprecations
573
574- Deprecated passing a string representing a "bundled icon" into `<Icon source>` Pass in an svg component imported from `@shopify/polaris-icons` instead ([#1534](https://github.com/Shopify/polaris-react/pull/1534)).
575- Deprecated all usage of the Shopify App Bridge in Polaris React ([#1573](https://github.com/Shopify/polaris-react/pull/1573))
576
577### Enhancements
578
579- Made the `action` prop optional on `EmptyState` ([#1583](https://github.com/Shopify/polaris-react/pull/1583))
580- Prevented Firefox from showing an extra dotted border on focused buttons ([#1409](https://github.com/Shopify/polaris-react/pull/1409))
581- Added `resolveItemId` prop to `ResourceList` which is used in the new multiselect feature ([#1261](https://github.com/Shopify/polaris-react/pull/1261))
582- Added `actions` prop to `<Card.Section>` to allow you to easily define header actions in a card section ([#1598](https://github.com/Shopify/polaris-react/pull/1598))
583- Added `<Card.Subsection>` to allow you to further subdivide `<Card.Section>` in a consistent manner ([#1611](https://github.com/Shopify/polaris-react/pull/1611))
584- Removed transition on tag button hover state [#1337](https://github.com/Shopify/polaris-react/pull/1337)
585- Added `textAlign` prop to Button ([#1576](https://github.com/Shopify/polaris-react/pull/1576))
586- Made `Button` red when given both the `plain` and `destructive` props ([#1603](https://github.com/Shopify/polaris-react/pull/1603))
587- Added support for disabled, destructive, and loading actions in `Card` and `Card.Section` ([#1622](https://github.com/Shopify/polaris-react/1622))
588
589### Bug fixes
590
591- Removed unnecessary border-radius from `Modal` body ([#1584](https://github.com/Shopify/polaris-react/pull/1584))
592- Fixed accessibility issues in `DropZone`, `Form`, `Modal`, `Section`, `Page`, `Tabs`, `TextField` and `TopBar` ([#1565](https://github.com/Shopify/polaris-react/pull/1565),[#1582](https://github.com/Shopify/polaris-react/pull/1582)).
593- Fixed inconsistent width depending on your browser/version in `Sheet` ([#1569](https://github.com/Shopify/polaris-react/pull/1569))
594- Fixed text and other elements from being selected in Safari when dragging the color picker ([#1562](https://github.com/Shopify/polaris-react/pull/1562))
595- Fixed `Banner` `title` overflowing when set to a single long word ([#1553](https://github.com/Shopify/polaris-react/pull/1553))
596- Remove export of `CombinedProps` and unneccessary export for Class based components ([#1592](https://github.com/Shopify/polaris-react/pull/1592))
597- Fixed improper spacing and coloring on a `TextField` prefix ([#1132](https://github.com/Shopify/polaris-react/issues/1132))
598- Fixed `ResourcePicker` not updating function references for `onSelection` and `onCancel` callbacks [#1451](https://github.com/Shopify/polaris-react/pull/1451)
599- Fixed `TextField` `label` being set as the value of the `label` node, as well as the `aria-label` `aria-labelledby` attributes, when only one method will suffice ([#1615](https://github.com/Shopify/polaris-react/pull/1615))
600- Fixed accessibility issues for Windows High Contrast mode on `Tabs` and `Popover` ([#1629](https://github.com/Shopify/polaris-react/pull/1629))
601
602### Documentation
603
604- Updated icon documentation to use imports from polaris-icons ([#1561](https://github.com/Shopify/polaris-react/pull/1561))
605- Fixed an accessibility issue in the `Collapsible` component example ([#1591](https://github.com/Shopify/polaris-react/pull/1591))
606- Added accessibility documentation for the `RangeSlider` component ([#1630](https://github.com/Shopify/polaris-react/pull/1630))
607- Added accessibility documentation for the `Collapsible` component ([#1631](https://github.com/Shopify/polaris-react/pull/1631))
608- Added accessibility documentation for the `DescriptionList` component ([#1634](https://github.com/Shopify/polaris-react/pull/1634))
609- Added accessibility documentation for the `Form` component ([#1636](https://github.com/Shopify/polaris-react/pull/1636))
610- Added accessibility documentation for the `ExceptionList` component ([#1635](https://github.com/Shopify/polaris-react/pull/1635))
611- Added accessibility documentation for the `KeyboardKey` component ([#1640](https://github.com/Shopify/polaris-react/pull/1640))
612- Added accessibility documentation for the `Tag` component ([#1647](https://github.com/Shopify/polaris-react/pull/1647))
613- Added accessibility documentation for the `Modal` component ([#1648](https://github.com/Shopify/polaris-react/pull/1648))
614
615### Development workflow
616
617- Made the a11y test that runs in CI fail if it finds any issues ([#1564](https://github.com/Shopify/polaris-react/pull/1564))
618- Updated Storybook to `v5.1.0-rc.4` ([#1616](https://github.com/Shopify/polaris-react/pull/1616))
619- Fixed a visual regression testing issue with the Card component ([#1618](https://github.com/Shopify/polaris-react/pull/1618))
620- Updated to sewing-kit v0.85.5 ([#1633](https://github.com/Shopify/polaris-react/pull/1633))
621
622### Dependency upgrades
623
624- Upgraded TypeScript dependency to `3.5.1` ([#1650](https://github.com/Shopify/polaris-react/pull/1650))
625
626### Code quality
627
628- Enabled the color contrast test in pa11y ([#1645](https://github.com/Shopify/polaris-react/pull/1645))
629- Combined jsdocs in `Icon` for the `untrusted` prop ([#1607](https://github.com/Shopify/polaris-react/pull/1607))
630
631## 3.16.0 - 2019-05-22
632
633### Enhancements
634
635- Added support for dual values to `RangeSlider` component ([#1436](https://github.com/Shopify/polaris-react/pull/1436))
636- Updated type restrictions for `AnnotatedSection` to allow its `title` prop to accept `React.ReactNode` instead of `string` ([#1431](https://github.com/Shopify/polaris-react/pull/1431))
637
638### Bug fixes
639
640- Fixed an issue where the JavaScript breakpoints incorrectly set the navigation bar collapsed breakpoint ([#1475](https://github.com/Shopify/polaris-react/pull/1475))
641- Added a border to `Toast` messages to make them more visible in Windows high contrast mode ([#1469](https://github.com/Shopify/polaris-react/pull/1469))
642- Added `box-shadow` to the `Banner` to make it more visible in Windows high contrast mode ([#1481](https://github.com/Shopify/polaris-react/pull/1481))
643- Added `box-shadow` to the `Card` to make it more visible in Windows high contrast mode ([#1524](https://github.com/Shopify/polaris-react/pull/1524))
644- Fixed UI regressions in `Navigation` component hover and active states ([#1551](https://github.com/Shopify/polaris-react/pull/1551))
645
646### Development workflow
647
648- Updated Storybook to `v5.1.0-alpha.39`, improving component searchability in the sidebar ([#1488](https://github.com/Shopify/polaris-react/pull/1488))
649
650### Dependency upgrades
651
652- Removed runtime dependency on `@shopify/images` as we never needed it at runtime ([#1474](https://github.com/Shopify/polaris-react/pull/1474))
653- Removed `@shopify/react-utilities` and replaced some of the functionality with `@shopify/css-utilities` or by moving the utilities into Polaris itself ([#1473](https://github.com/Shopify/polaris-react/pull/1473))
654
655## 3.15.0 - 2019-05-14
656
657This release fixes an issue introduced in `v3.14.0` that caused the `esnext` build not to succeed resulting in build errors for consumers ([#1466](https://github.com/Shopify/polaris-react/pull/1466))
658
659### Enhancements
660
661- Enhanced `NavigationItem`’s color accessibility for `active`, `focus`, `hover` and `Selected` states ([1304](https://github.com/Shopify/polaris-react/pull/1304))
662- Added `align` prop to `TextField` ([#1428](https://github.com/Shopify/polaris-react/pull/1428))
663- Added `clearButton` prop to `TextField` ([#1226](https://github.com/Shopify/polaris-react/pull/1226))
664
665### Bug fixes
666
667- Fixed `Checkbox` from improperly toggling when disabled ([#1467](https://github.com/Shopify/polaris-react/pull/1467))
668- Fixed `Popover` fade-in flutter on iOS by switching Transition component for CSSTransition ([#1400](https://github.com/Shopify/polaris-react/pull/1400))
669- Improved the visibility of focus styles for the `Link` component. ([#1425](https://github.com/Shopify/polaris-react/pull/1425))
670
671### Documentation
672
673- Updated accessibility testing documentation ([#1449](https://github.com/Shopify/polaris-react/pull/1449))
674- Added guidelines for tertiary actions in modals to `Modal` component documentation ([#1336](https://github.com/Shopify/polaris-react/pull/1336))
675
676### Development workflow
677
678- Updated the a11y shitlist and re-enabled the pa11y job in CI. The job always passes for now, as a way for us to judge whether it is stable and can be made a required check. ([#1456](https://github.com/Shopify/polaris-react/pull/1456))
679
680### Code quality
681
682- Simplified logic in Checkbox component ([#1453](https://github.com/Shopify/polaris-react/pull/1453))
683
684## 3.14.0 - 2019-05-08
685
686### New components
687
688- Added the `Sheet`component ([#1250](https://github.com/Shopify/polaris-react/pull/1250))
689
690### Enhancements
691
692- Added translations for all supported locales ([#1358](https://github.com/Shopify/polaris-react/pull/1358))
693- Improved the performance of `ResourceList` ([#1313](https://github.com/Shopify/polaris-react/pull/1313))
694- Added `withinContentContainer` context to `Navigation` ([#1393](https://github.com/Shopify/polaris-react/pull/1393))
695- Added support for`Tooltip` content to wrap nonbreaking strings [#1395](https://github.com/Shopify/polaris-react/pull/1395)
696
697### Bug fixes
698
699- Removed `window` call on `server` executed code [#1427](https://github.com/Shopify/polaris-react/pull/1427)
700- Fixed `onClick` from firing three times when using the enter key on a `ResourceList` item ([#1188](https://github.com/Shopify/polaris-react/pull/1188))
701- Resolved console `[Intervention]` errors for touch interactions on `ColorPicker` ([#1414](https://github.com/Shopify/polaris-react/pull/1414))
702- Fixed page scrolling while interacting with the color slider ([#1414](https://github.com/Shopify/polaris-react/pull/1414))
703- Applied `font-family` to `button` elements which were being overridden by User Agent Stylesheet ([#1397](https://github.com/Shopify/polaris-react/pull/1397))
704- Fixed `Checkbox` being toggled when disabled ([#1369](https://github.com/Shopify/polaris-react/pull/1369))
705- Fixed `DropZone.FileUpload` from incorrectly displaying action hint and title when the default is used and removed ([#1233](https://github.com/Shopify/polaris-react/pull/1233))
706- Fixed `ResourceList.Item` interaction states from being incorrectly applied ([#1312](https://github.com/Shopify/polaris-react/pull/1312)
707- Fixed selected state for date picker in Windows high contrast mode ([#1342](https://github.com/Shopify/polaris-react/pull/1342))
708- Fixed accessibility of skeleton components for Windows high contrast mode ([#1341](https://github.com/Shopify/polaris-react/pull/1341))
709- Fixed `Loading` visibility in Windows high contrast mode ([#1389](https://github.com/Shopify/polaris-react/pull/1389))
710- Fixed the position calculation of the `PositionedOverlay` component after scroll ([#1382](https://github.com/Shopify/polaris-react/pull/1382))
711- Fixed styling issue for `Pagination` when used with `Tooltip` ([#1277](https://github.com/Shopify/polaris-react/pull/1277))
712- Fixed certain children of a `TextContainer` having no top margin ([#1357](https://github.com/Shopify/polaris-react/pull/1357))
713- Added border to `Tooltip` in Windows high contrast mode ([#1405](https://github.com/Shopify/polaris-react/pull/1405))
714- Fixed `Navigation.Section` rollup collapsing when `Navigation.Item` `subNavigationItems` expand ([#1417](https://github.com/Shopify/polaris-react/pull/1417))
715
716### Documentation
717
718- Updated `Link` accessibility documentation for the `external` prop to reflect new behavior ([#1347](https://github.com/Shopify/polaris-react/pull/1347))
719- Added accessibility documentation for `VisuallyHidden` ([#1348](https://github.com/Shopify/polaris-react/pull/1348))
720- Added accessibility documentation for `TextStyle` ([#1350](https://github.com/Shopify/polaris-react/pull/1350))
721- Added accessibility guidance for `Heading` and `Subheading` ([#1351](https://github.com/Shopify/polaris-react/pull/1351))
722- Added accessibility documentation for `List` and `Stack` ([#1353](https://github.com/Shopify/polaris-react/pull/1353))
723- Added accessibility guidance for `DisplayText` ([#1354](https://github.com/Shopify/polaris-react/pull/1354))
724- Added guidance for updating component documentation and tophatting style guide changes ([#1362](https://github.com/Shopify/polaris-react/pull/1362))
725- Added accessibility documentation and guidance for `ActionList` and `OptionList` ([#1365](https://github.com/Shopify/polaris-react/pull/1365))
726- Added accessibility documentation for `Card` and `CalloutCard` ([#1366](https://github.com/Shopify/polaris-react/pull/1366))
727- Added accessibility documentation for `Badge` ([#1364](https://github.com/Shopify/polaris-react/pull/1364))
728- Added accessibility documentation for `Icon` ([#1404](https://github.com/Shopify/polaris-react/pull/1404))
729- Added accessibility documentation for `Popover` ([#1408](https://github.com/Shopify/polaris-react/pull/1408))
730- Fixed content example for `ContextualSaveBar` guidelines ([#1423](https://github.com/Shopify/polaris-react/pull/1423))
731
732### Dependency upgrades
733
734- Updated most `devDependencies` ([#1327](https://github.com/Shopify/polaris-react/pull/1327))
735- Bumped `@shopify/react-utilites` to remove a transitive dependency on `core-js` ([#1343](https://github.com/Shopify/polaris-react/pull/1343))
736- Updated App Bridge to version 1.3.0 ([#1349](https://github.com/Shopify/polaris-react/pull/1349))
737- Updated `typescript` to 3.2.4 ([#1388](https://github.com/Shopify/polaris-react/pull/1388))
738- Updated `sewing-kit` to 0.83.1 and babel-preset-shopify to ^18.1.0 ([#1344](https://github.com/Shopify/polaris-react/pull/1344))
739
740### Code quality
741
742- Updated `Dropzone.FileUpload` to no longer use `componentWillReceiveProps` and `componentWillMount` ([#1233](https://github.com/Shopify/polaris-react/pull/1233))
743- Removed a `window.open` implementation error in `ResourceList.Item` ([#1294](<(https://github.com/Shopify/polaris-react/pull/1294)>))
744
745## 3.13.0 - 2019-04-22
746
747### Deprecations
748
749- Deprecated Navigation `Item`’s `iconBody` prop. Pass a string into the `icon` prop instead. ([#1299](https://github.com/Shopify/polaris-react/pull/1299))
750
751### Enhancements
752
753- Added an `onChange` handler to `CheckableButton` ([#1326](https://github.com/Shopify/polaris-react/pull/1326))
754- `Labelled` now wraps its content, no longer causing a `label + action` to get unreasonably squished ([#1309](https://github.com/Shopify/polaris-react/pull/1309))
755- Updated `polaris-tokens` from `2.3.0` to `2.5.0` and converted all use of `duration` values ([#1268](https://github.com/Shopify/polaris-react/pull/1268))
756- More consistent use of `text-breakword` mixin ([#1306](https://github.com/Shopify/polaris-react/pull/1306))
757- Added an icon and screen reader hint when `Link` opens a new tab ([#1247](https://github.com/Shopify/polaris-react/pull/1247))
758- Updated the pull request creation to create multiple pull requests and update `polaris-react` across multiple repos ([#1069](https://github.com/Shopify/polaris-react/pull/1069))
759- Updated the pull request creation to retry when it fails ([#1069](https://github.com/Shopify/polaris-react/pull/1069))
760- Exported overlay and layer data attributes for use in consumer components ([#1266](https://github.com/Shopify/polaris-react/pull/1266))
761- Added new `frame-with-nav-max-width` variable and matching `frame-with-nav-when-not-max-width` mixin ([#1311](https://github.com/Shopify/polaris-react/pull/1311))
762- Updated `Resizer` to schedule `handleHeightCheck` to run in next animation frame ([#1301](https://github.com/Shopify/polaris-react/pull/1301))
763
764### Bug fixes
765
766- Fixed `ResourceList` actions from show at incorrect breakpoints or while in select mode ([#1333](https://github.com/Shopify/polaris-react/pull/1333))
767- Fixed Search overlay stretching below the viewport ([#1260](https://github.com/Shopify/polaris-react/pull/1260))
768- Added `onChange` and `value` to select `AppProvider` examples to remove console errors ([#1320](https://github.com/Shopify/polaris-react/pull/1320))
769- Fixed promoted bulk actions in `ResourceList` not properly disabling ([#1317](https://github.com/Shopify/polaris-react/pull/1317)) (thanks [@jineshshah36](https://github.com/jineshshah36) for the [issue report](https://github.com/Shopify/polaris-react/issues/1316))
770- Fixed `ResourceList` header from displaying when `EmptySearchResult` exists ([#1286](https://github.com/Shopify/polaris-react/pull/1286))
771- Stopped passing the `polaris` context into the div rendered by `Scrollable` ([#1271](https://github.com/Shopify/polaris-react/pull/1271))
772- Fixed clickable area on sortable column headers on `DataTable` ([#1273](https://github.com/Shopify/polaris-react/pull/1273))
773
774### Development workflow
775
776Upgraded Storybook to v5 ([#1140](https://github.com/Shopify/polaris-react/pull/1140))
777
778### Dependency upgrades
779
780- Remove core-js ([#1328](https://github.com/Shopify/polaris-react/pull/1328))
781- Upgraded Polaris icons to include the full icon set ([#1284](https://github.com/Shopify/polaris-react/pull/1284))
782
783### Code quality
784
785- Migrated the refs in `DropZone` to use the new createRef API ([#1063](https://github.com/Shopify/polaris-react/pull/1063))
786- Updated `ResourceList` to no longer use `componentWillReceiveProps`([#1235](https://github.com/Shopify/polaris-react/pull/1235))
787- Updated `Tabs` to no longer use `componentWillReceiveProps`([#1221](https://github.com/Shopify/polaris-react/pull/1221))
788- Removed an unneeded media query from Modal’s `Header` component ([#1272](https://github.com/Shopify/polaris-react/pull/1272))
789- Replaced all instances where we pass a string representing a bundled icon into `Button`. Prefer passing in the React Component from `@shopify/polaris-icons` ([#1297](https://github.com/Shopify/polaris-react/pull/1297))
790
791## 3.12.0 - 2019-03-29
792
793### Enhancements
794
795- Added a public `focus` method on `Banner` ([#1219](https://github.com/Shopify/polaris-react/pull/1219))
796- Added an `onScrollToBottom` prop to `Popover.Pane` ([#1248](https://github.com/Shopify/polaris-react/pull/1248))
797- Added a `placeholder` prop to `FilterControl` ([#1257](https://github.com/Shopify/polaris-react/pull/1257))
798- Added support for setting string values on the `TextField` `autoComplete` prop ([#1259](https://github.com/Shopify/polaris-react/pull/1259))
799
800### Bug fixes
801
802- Fixed disabled states while loading for `ResourceList` ([#1237](https://github.com/Shopify/polaris-react/pull/1237))
803- Fixed `Checkbox` from losing focus and not receiving some modified events([#1112](https://github.com/Shopify/polaris-react/pull/1112))
804- Added translation for the cancel button on the `ResourceList` `BulkActions` ([#1243](https://github.com/Shopify/polaris-react/pull/1243))
805- Fixed the `Autocomplete` `onLoadMoreResults` prop not being called on scrolling to the end of the option list ([#1249](https://github.com/Shopify/polaris-react/pull/1249))
806
807### Documentation
808
809- Removed `button group joined to the bottom of a component` example ([#1267](https://github.com/Shopify/polaris-react/pull/1267))
810
811## 3.11.0 - 2019-03-21
812
813### Enhancements
814
815- Updated `Navigation` badge prop to accept a react node ([#1142](https://github.com/Shopify/polaris-react/pull/1142))
816- Changed max width on `Search` to 694px so that it is perfectly centered in the top bar ([#1107](https://github.com/Shopify/polaris-react/issues/1107))
817- Added `action` prop to `Toast` ([#919](https://github.com/Shopify/polaris-react/pull/919))
818- Remove all usage of `@shopify/javascript-utilities/decorators`, namely `autobind`, `debounce`, and `memoize` ([#1148](https://github.com/Shopify/polaris-react/issues/1148))
819- Added `Empty State` footerContent prop ([#1200](https://github.com/Shopify/polaris-react/pull/1200))
820- Added viewport condition to `TopBar` to enlarge the `contextControl` wrapper on wider screens ([#1231](https://github.com/Shopify/polaris-react/pull/1231))
821
822### Bug fixes
823
824- Fixed selectMode on `ResourceList` not toggling when items are selected programmatically ([#1224](https://github.com/Shopify/polaris-react/pull/1224))
825- Fixed unnecessary height on `TextField` due to unhandled carriage returns ([#901](https://github.com/Shopify/polaris-react/pull/901))
826- Ensured server side rendering matches client side rendering for [embedded app components](https://github.com/Shopify/polaris-react/blob/master/documentation/Embedded%20apps.md#components-which-wrap-shopify-app-bridge) ([#976](https://github.com/Shopify/polaris-react/pull/976))
827- Fixed rendering of the spinner on `TextField` when setting to readOnly ([#1118](https://github.com/Shopify/polaris-react/pull/1199))
828- Fixed webpack example that does not compile ([#1189](https://github.com/Shopify/polaris-react/issues/1189))
829
830### Documentation
831
832- Added accessibility documentation for `Checkbox`, `RadioButton`, and `ChoiceList` ([#1145](https://github.com/Shopify/polaris-react/pull/1145))
833
834### Dependency upgrades
835
836- Regenerated the yarn.lock file in the browserify example to resolve security vulnerabilities ([#1202](https://github.com/Shopify/polaris-react/issues/1202))
837- Updated browserify example dependencies and dev dependencies ([#1191](https://github.com/Shopify/polaris-react/issues/1191))
838- Updated webpack example dependencies and dev dependencies ([#1189](https://github.com/Shopify/polaris-react/issues/1189))
839
840### Code quality
841
842- Replaced all occurrences of `_.merge` with a custom `merge` function ([#1018](https://github.com/Shopify/polaris-react/pull/1018))
843- Replaced all occurrences of `_.pick` with a custom pick function ([#1020](https://github.com/Shopify/polaris-react/pull/1020))
844- Deleted the icons index file that would re-export icons, and replaced it with direct imports ([#1195](https://github.com/Shopify/polaris-react/pull/1195))
845- Replaces all instances where we pass a string representing a bundled icon into `Icon`. Prefer passing in the React Component from `@shopify/polaris-icons` ([#1196](https://github.com/Shopify/polaris-react/pull/1196))
846
847## 3.10.0 - 2019-03-07
848
849### Enhancements
850
851- Added Polaris version information tracking in App Bridge actions ([#1087](https://github.com/Shopify/polaris-react/pull/1087))
852- Re-added the navigation’s border-right ([#1096](https://github.com/Shopify/polaris-react/pull/1096))
853- Added `onScrolledToBottom` prop to `Modal` ([#1117](https://github.com/Shopify/polaris-react/pull/1117))
854- Updated `Navigation.Item` to use `Icon` when `iconBody` prop is passed in. Renders these icons in an `img` tag now. ([#1094](https://github.com/Shopify/polaris-react/pull/1094))
855- Added focus state outlines to be visible when using Windows High Contrast Mode for `Button` ([#1101](https://github.com/Shopify/polaris-react/pull/1101))
856
857### Bug fixes
858
859- Reverted a change that constrained `DropZone` height based on inherited wrapper height [#1129](https://github.com/Shopify/polaris-react/pull/1129)
860- Fixed missing rounded corners on `Tag` button states ([#1078](https://github.com/Shopify/polaris-react/pull/1078))
861- Removed reference to `window.Polaris`, which in some cases could be undefined ([#1104](https://github.com/Shopify/polaris-react/issues/1104))
862- Added padding and margin to `subdued` sections for proper spacing between the header and footer ([#1082](https://github.com/Shopify/polaris-react/pull/1082))
863- Removed left margin from vertical `Stack` to prevent overflow ([#1024](https://github.com/Shopify/polaris-react/pull/1024))
864- Fixed the size differences between `SkeletonThumbnail` and `Thumbnail` ([#1141](https://github.com/Shopify/polaris-react/pull/1141)) (thanks [@mbaumbach](https://github.com/mbaumbach) for the [issue report](https://github.com/Shopify/polaris-react/issues/1135))
865- Refactored `ComboBox` tests that were not running ([#1137](https://github.com/Shopify/polaris-react/pull/1137))
866
867### Documentation
868
869- Updated related component documentation for `Page`, `PageActions`, and `Pagination` ([#1103](https://github.com/Shopify/polaris-react/pull/1103))
870- Improved `Modal` documentation for properties only available in a stand-alone app context ([#1065](https://github.com/Shopify/polaris-react/pull/1065))
871- Added accessibility documentation about `Banner` ([#1071](https://github.com/Shopify/polaris-react/pull/1071))
872- Added accessibility documentation for `InlineError` ([#1073](https://github.com/Shopify/polaris-react/pull/1073))
873- Added accessibility documentation for `Loading` ([#1075](https://github.com/Shopify/polaris-react/pull/1075))
874- Fixed documentation about the `ariaPressed` prop for `Button` ([#1097](https://github.com/Shopify/polaris-react/pull/1097))
875- Fixed examples using the `selected` prop for `Autocomplete` ([#1053](https://github.com/Shopify/polaris-react/pull/1053))
876
877### Development workflow
878
879- Added viewport meta tag to Storybook frame ([#1026](https://github.com/Shopify/polaris-react/pull/1026))
880
881### Code quality
882
883- Removed lodash decorators and replace all occurrences of `_.throttle` with `debounce` ([#1009](https://github.com/Shopify/polaris-react/pull/1009))
884- Removed all occurrences of `_.replace` ([#1012](https://github.com/Shopify/polaris-react/pull/1012))
885- Added lodash to `create-react-app` example ([#1010](https://github.com/Shopify/polaris-react/pull/1010))
886- Updated `create-react-app` example dependencies ([#1010](https://github.com/Shopify/polaris-react/pull/1010))
887- Replaced all occurrences of `_.capitalize` with a custom `capitalize` function ([#1015](https://github.com/Shopify/polaris-react/pull/1015))
888- Replaced all occurrences of `_.isObject` with a custom `isObject` function ([#1011](https://github.com/Shopify/polaris-react/pull/1011))
889- Replaced all occurrences of `_.get` with a custom `get` function ([#1013](https://github.com/Shopify/polaris-react/pull/1013))
890- Moved icons specific to `Banner`, `DropZone`, and `ResourceList` to [@shopify/polaris-icons](https://www.npmjs.com/package/@shopify/polaris-icons) ([#1042](https://github.com/Shopify/polaris-react/pull/1042))
891- Updated spinner component to use the `Image` component instead of an SVG tag to render ([#1042](https://github.com/Shopify/polaris-react/pull/1042))
892
893### Deprecations
894
895- Deprecated passing a React Element into the `Icon` component in favor of passing a React Component ([#1042](https://github.com/Shopify/polaris-react/pull/1042))
896- Deprecated the untrusted prop in the `Icon` component ([#1042](https://github.com/Shopify/polaris-react/pull/1042))
897
898## 3.9.0 - 2019-02-21
899
900### Enhancements
901
902- Used `base-tight` `spacing` value instead of `rem(12px)` ([#1044](https://github.com/Shopify/polaris-react/pull/1044))
903
904### Bug fixes
905
906- Fixed the `focused` prop on `TextField` so it sets the focus state ([#990](https://github.com/Shopify/polaris-react/pull/990))
907- Resolved an unsupported `React.Fragment` syntax ([#1080](https://github.com/Shopify/polaris-react/pull/1080))
908- Constrained `DropZone` height based on inherited wrapper height [#908](https://github.com/Shopify/polaris-react/pull/908)
909- Reverted a change that adjusted padding in the `Card` component introduced in ([#962](https://github.com/Shopify/polaris-react/pull/962))
910
911## 3.8.0 - 2019-02-20
912
913### New components
914
915- `SkeletonThumbnail` for representing thumbnails in loading state
916
917### Enhancements
918
919- Updates `TopBar.UserMenu` interaction states styling ([#1006](https://github.com/Shopify/polaris-react/pull/1006))
920- Added `download` prop to `Button` and `UnstyledLink` components that enables setting the download attribute ([#1027](https://github.com/Shopify/polaris-react/pull/1027))
921- Added support for internationalization of month and week names to `DatePicker` ([#1005](https://github.com/Shopify/polaris-react/pull/1005))
922- Added `untrusted` prop to `Icon` to render SVG strings in an img tag ([#926](https://github.com/Shopify/polaris-react/pull/926))
923- Added a `data-href` to `ResourceList.Item`s that have a `url` prop ([#1054](https://github.com/Shopify/polaris-react/pull/1054))
924
925### Bug fixes
926
927- Fixed `type="number"` `TextField` to prevent conditions where press-and-hold could increment or decrement infinitely ([#1029](https://github.com/Shopify/polaris-react/pull/1029))
928- Fixed the top border of `DataTable` overlapping its container’s border ([#975](https://github.com/Shopify/polaris-react/pull/975))
929- Fixed the `DataTable` sort direction not reversing on second sort of the initially sorted column ([#918](https://github.com/Shopify/polaris-react/pull/918)) (thanks [@tabrez96](https://github.com/tabrez96) for the [issue report](https://github.com/Shopify/polaris-react/issues/873))
930- Changed the offset from 5px to 4px in `Tooltip` between activator and message to be consistent with `Popover` ([#1019](https://github.com/Shopify/polaris-react/pull/1019))
931- Fixed `Card` header not showing when `title` empty or not set ([#1031](https://github.com/Shopify/polaris-react/pull/1032))
932- Fixed an issue on Chrome when you use a `TextField` inside `Collapsible` which is inside a scrollable element, the text disappeared if you focused a fully hidden `TextField` ([#1047](https://github.com/Shopify/polaris-react/pull/1047))
933
934### Documentation
935
936- Added accessibility documentation for the button and link components ([#924](https://github.com/Shopify/polaris-react/pull/924))
937- Added accessibility recommendations for the text field and autocomplete components ([#968](https://github.com/Shopify/polaris-react/pull/968))
938
939### Development workflow
940
941- Added a test that builds Polaris for web and polaris-styleguide. This test takes ~20 minutes to run so it’s only configured to run for master ([931](https://github.com/Shopify/polaris-react/pull/931))
942- Enabled `no-vague-titles eslint` rule ([#1051](https://github.com/Shopify/polaris-react/pull/1051))
943
944## 3.7.1 - 2019-02-12
945
946### Bug fixes
947
948- Moved character counter to bottom of multiline text input ([#992](https://github.com/Shopify/polaris-react/pull/992))
949- Aligned `TopBar` search input and results with page content ([#1008](https://github.com/Shopify/polaris-react/issues/1008))
950
951### Documentation
952
953- Added all props example of `ResourceList` in the [style guide](https://polaris.shopify.com) ([#978](https://github.com/Shopify/polaris-react/pull/978))
954
955## 3.7.0 - 2019-02-11
956
957### Enhancements
958
959- Removed `TopBar` logo background ([#957](https://github.com/Shopify/polaris-react/pull/957))
960- Updated `TopBar` search results width to adapt to search input and added a minimum width ([#969](https://github.com/Shopify/polaris-react/pull/969))
961- Updated `Card.Section` to accept `React.ReactNode` as `title` ([#781](https://github.com/Shopify/polaris-react/pull/781))
962- Added `contextControl` prop to `TopBar` and `Navigation` ([#966](https://github.com/Shopify/polaris-react/pull/966))
963
964### Bug fixes
965
966- Fixed `Collapsible` to use `overflow: visible;` once fully open ([#951](https://github.com/Shopify/polaris-react/pull/951))
967- Fixed the `DataTable` sort direction not reversing on second sort of the initially sorted column ([#918](https://github.com/Shopify/polaris-react/pull/918)) (thanks [@tabrez96](https://github.com/tabrez96) for the [issue report](https://github.com/Shopify/polaris-react/issues/873))
968- Fixed `TextField` when passing `null` to `value` ([#964](https://github.com/Shopify/polaris-react/pull/964)) (thanks [@mbaumbach](https://github.com/mbaumbach) for the [original issue](https://github.com/Shopify/polaris-react/issues/959))
969- Changed the default value for `showHidden` prop on `ResourcePicker` for backward compatibility with legacy EASDK ([#981](https://github.com/Shopify/polaris-react/pull/981))
970- Adjusted top and bottom padding to the header, footer and sections in `Card` to add space between action buttons in the header and footer and the card sections. ([#962](https://github.com/Shopify/polaris-react/pull/962))
971
972### Documentation
973
974- Added accessibility documentation for the account connection and setting toggle components ([#970](https://github.com/Shopify/polaris-react/pull/970))
975- Added accessibility documentation for the avatar component ([#973](https://github.com/Shopify/polaris-react/pull/973))
976- Updated docs about App Bridge usage in AppProvider ([#945](https://github.com/Shopify/polaris-react/pull/945))
977- Added all props example to `DataTable` in the [style guide](https://polaris.shopify.com) ([#1003](https://github.com/Shopify/polaris-react/pull/939))
978
979### Development workflow
980
981- Fixed links to Polaris component pages in story descriptions ([#933](https://github.com/Shopify/polaris-react/pull/933))
982
983### Dependency upgrades
984
985- Upgraded to `@shopify/polaris-icons` v2.0.0 ([#982](https://github.com/Shopify/polaris-react/pull/982))
986
987### Code quality
988
989- Updated `import styles from './foo.scss';` from non-standard `import * as styles from './foo.scss';` when importing scss files ([#929](https://github.com/Shopify/polaris-react/pull/929))
990- Removed internal ellipsis icon as it is deprecated, and horizontalDots should be used instead ([#974](https://github.com/Shopify/polaris-react/pull/974))
991
992## 3.6.0 - 2019-01-30
993
994### Enhancements
995
996- Updated `TextField` to accept a `showCharacterCount` prop enabling the display of character count ([#709](https://github.com/Shopify/polaris-react/pull/709))
997
998### Bug fixes
999
1000- Fixed vertical misalignment in `Banner.Header`([#870](https://github.com/Shopify/polaris-react/pull/870))
1001- Removed a duplicate `activatorWrapper` in `Popover` when destructuring props ([#916](https://github.com/Shopify/polaris-react/pull/916))
1002- Fixed `Banner` secondaryAction content wrapping in Firefox ([#719](https://github.com/Shopify/polaris-react/pull/719))
1003- Added `onKeyPress`, `onKeyDown`, and `onKeyUp` to `Button` ([#860](https://github.com/Shopify/polaris-react/pull/860))
1004- Added `monochrome` prop to `Button` and `Link` component ([#821](https://github.com/Shopify/polaris-react/pull/821))
1005- Updated `Frame` layout and made `TopBar.UserMenu` visible on mobile ([#852](https://github.com/Shopify/polaris-react/pull/852))
1006- Added a `forceRender` prop to `Page` to not delegate to the app bridge TitleBar action ([#695](https://github.com/Shopify/polaris-react/pull/695))
1007- Changed `Tabs` example to contain children so the `Panel` renders for accessibility ([#893](https://github.com/Shopify/polaris-react/pull/893))
1008- Fixed timezone not being accounted for in `ResourceList` date filter control ([#710](https://github.com/Shopify/polaris-react/pull/710))
1009- Removed unnecessary tooltip text in the `TopBar` component ([#859](https://github.com/Shopify/polaris-react/pull/859))
1010
1011### Documentation
1012
1013- Added `Stack.Item` properties and description to [style guide](https://polaris.shopify.com)’s ([#772](https://github.com/Shopify/polaris-react/pull/772))
1014- Added accessibility documentation to the resource list and data table components ([#927](https://github.com/Shopify/polaris-react/pull/927))
1015- Added accessibility recommendations for the caption component ([#928](https://github.com/Shopify/polaris-react/pull/928/))
1016
1017### Development workflow
1018
1019- Improved build speed by adjusting our rollup workflow ([#912](https://github.com/Shopify/polaris-react/pull/912)) and not optimizing svgs in the node_modules folder ([#920](https://github.com/Shopify/polaris-react/pull/920))
1020- Fixed an issue where deployments would use an old version of Yarn, and open a pull request to polaris-styleguide with thousands of deleted integrity hashes in `yarn.lock` ([#856](https://github.com/Shopify/polaris-react/pull/856))
1021
1022### Dependency upgrades
1023
1024- Updated App Bridge to version 1.0.3 ([#844](https://github.com/Shopify/polaris-react/pull/844))
1025
1026### Deprecations
1027
1028- Deprecated `Navigation.UserMenu` in favor of `TopBar.UserMenu` ([#849](https://github.com/Shopify/polaris-react/pull/849))
1029- Deprecated `Navigation`’s `userMenu` prop ([#930](https://github.com/Shopify/polaris-react/pull/930))
1030
1031## 3.5.0 - 2019-01-16
1032
1033### Enhancements
1034
1035- Update build toolchain to use Babel v7, PostCSS v7 and Rollup v1. Updated our build targets match our [supported browsers](https://help.shopify.com/en/manual/intro-to-shopify/shopify-admin/supported-browsers), leading to a reduction in bundle size ([#837](https://github.com/Shopify/polaris-react/pull/837))
1036
1037### Bug fixes
1038
1039- Ensured disabled `Button` components with a `url` prop output valid HTML ([#773](https://github.com/Shopify/polaris-react/pull/773))
1040- Fixed `DropZone` which was unable to add a duplicate file back to back or add a file again once removed [#782](https://github.com/Shopify/polaris-react/pull/782). Thank you [@jzsplk](https://github.com/jzsplk) for the contribution [#425](https://github.com/Shopify/polaris-react/issues/425) and [@vladucu](https://github.com/vladucu) for the clear example.
1041- Added a fallback to the `safeAreaFor` Sass mixin to handle browsers that don’t support `env` and `constant` ([#881](https://github.com/Shopify/polaris-react/pull/881))
1042
1043### Documentation
1044
1045- Added deprecation guidelines ([#853](https://github.com/Shopify/polaris-react/pull/853))
1046
1047### Development workflow
1048
1049- Replaced our home-grown playground with Storybook (still accessed through `yarn dev`) ([#768](https://github.com/Shopify/polaris-react/pull/768))
1050- Removed our usage of babel-node for build scripts - use plain node instead ([#836](https://github.com/Shopify/polaris-react/pull/836))
1051- Ensured CSS builds are reproducible ([#869](https://github.com/Shopify/polaris-react/pull/869))
1052
1053## 3.4.0 - 2019-01-08
1054
1055### Enhancements
1056
1057- Moved icons to a separate npm package ([#686](https://github.com/Shopify/polaris-react/pull/686))
1058- Added `oneHalf` and `oneThird` props to `Layout` component ([#724](https://github.com/Shopify/polaris-react/pull/724))
1059- Added `helpText` prop to `ActionList` items ([#777](https://github.com/Shopify/polaris-react/pull/777))
1060- Updated `Page` header layout so actions take up less room on small screens ([#707](https://github.com/Shopify/polaris-react/pull/707))
1061- Added `alternateTool` prop to `ResourceList` component ([#812](https://github.com/Shopify/polaris-react/pull/812))
1062- Updated color of warning status `ExceptionList` items from dark orange to dark yellow for better differentiation from critical status items ([#813](https://github.com/Shopify/polaris-react/pull/813))
1063
1064### Bug fixes
1065
1066- Fixed `TextField` not showing the correct color while it has focus and an error ([#806](https://github.com/Shopify/polaris-react/pull/806))
1067- Fixed `ResourceList` not rendering `BulkActions` on initial load when items were selected ([#746](https://github.com/Shopify/polaris-react/pull/746))
1068- Fixed the new variant of the `Badge` component so that it is simpler and easier to read ([#751](https://github.com/Shopify/polaris-react/pull/751))
1069- Reverted a change that set the `autocomplete` property on `TextField` to `nope` when it was `false` ([#761](https://github.com/Shopify/polaris-react/pull/761))
1070- Added dismiss button for `CalloutCard` ([#353](https://github.com/Shopify/polaris-react/issues/353))
1071- Removed an extra tab stop from `ResourceList.Item` and make it unactionable while loading ([#745](https://github.com/Shopify/polaris-react/pull/745))
1072- Fixed `Checkbox` from losing focus when quickly toggled ([#717](https://github.com/Shopify/polaris-react/pull/717))
1073- Fixed the console error in the `PositionedOverlay` test environment ([#758](https://github.com/Shopify/polaris-react/pull/758))
1074- Fixed `ResourceList` not rendering a header after initial load (thanks to [@andrewpye](https://github.com/andrewpye) for the [original issue](https://github.com/Shopify/polaris-react/issues/735))
1075- Fixed `TextField` not passing `step` to the input ([#829](https://github.com/Shopify/polaris-react/pull/829))
1076- Renamed `Option` and `Group` types in `Select` to work around typedoc oddness ([#830](https://github.com/Shopify/polaris-react/pull/830))
1077
1078### Documentation
1079
1080- Modified image paths to fit the [style guide](https://polaris.shopify.com)’s new Markdown parsing rules ([#753](https://github.com/Shopify/polaris-react/pull/753))
1081
1082### Development workflow
1083
1084- Added a slight delay to the Percy screenshot script to give time for components to render fully ([#704](https://github.com/Shopify/polaris-react/pull/704))
1085- Refactored to remove cyclical type imports ([#759](https://github.com/Shopify/polaris-react/pull/759), [#754](https://github.com/Shopify/polaris-react/pull/754), and [#767](https://github.com/Shopify/polaris-react/pull/767))
1086
1087### Dependency upgrades
1088
1089- Upgraded `@shopify/polaris-tokens` to v2.1.1 ([#813](https://github.com/Shopify/polaris-react/pull/813))
1090
1091## 3.3.0 - 2018-12-12
1092
1093### Enhancements
1094
1095- Added support for `ResourceList.Item` opening a URL in new tab if <kbd>command</kbd> or <kbd>control</kbd> keys are pressed during click ([#690](https://github.com/Shopify/polaris-react/pull/690))
1096- Added `primaryAction` prop to `SkeletonPage` ([#488](https://github.com/Shopify/polaris-react/pull/488))
1097- Added support for press-and-hold to increment and decrement value in a `type="number"` `TextField` ([#573](https://github.com/Shopify/polaris-react/pull/573)) (thanks to [@andrewpye](https://github.com/andrewpye) for the [original issue](https://github.com/Shopify/polaris-react/issues/420))
1098- Forced `Avatar` to fall back to `initials` when the image fails to load ([#712](https://github.com/Shopify/polaris-react/pull/712))
1099
1100### Bug fixes
1101
1102- Fixed `Popover` not opening in a small `Scrollable` container ([#658](https://github.com/Shopify/polaris-react/pull/658))
1103- Fixed `Page` header component to only render actions wrapper when actions are present ([#732](https://github.com/Shopify/polaris-react/pull/732))
1104- Fixed `ContextualSaveBarProps` type not being exported ([#734](https://github.com/Shopify/polaris-react/pull/734))
1105- Fixed `Avatar` proportions when image is not square ([#740](https://github.com/Shopify/polaris-react/pull/740))
1106
1107### Development workflow
1108
1109- Upgraded to TypeScript 3.1.6 ([#700](https://github.com/Shopify/polaris-react/pull/700))
1110- Moved some inconsistent prop types around for compatibility with the style guide’s Props Explorer ([#727](https://github.com/Shopify/polaris-react/pull/727))
1111
1112## 3.2.1 - 2018-12-04
1113
1114### Bug fixes
1115
1116- Fixed `ToastProps` type not being exported ([#722](https://github.com/Shopify/polaris-react/pull/722))
1117- Fixed Shopify App Bridge import issues in `AppProvider` and `enzyme` test utilities ([#720](https://github.com/Shopify/polaris-react/pull/720))
1118
1119## 3.2.0 - 2018-12-04
1120
1121### Enhancements
1122
1123- Updated `TextField` to no longer use `componentWillReceiveProps`([#628](https://github.com/Shopify/polaris-react/pull/628))
1124- Updated `EventListener` to no longer use `componentWillUpdate` ([#628](https://github.com/Shopify/polaris-react/pull/628))
1125- Allowed `Icon` to accept a React Node as a source ([#635](https://github.com/Shopify/polaris-react/pull/635)) (thanks to [@mbriggs](https://github.com/mbriggs) for the [original issue](https://github.com/Shopify/polaris-react/issues/449))
1126- Added `alignContentFlush` prop to ContextualSaveBar ([#654](https://github.com/Shopify/polaris-react/pull/654))
1127
1128### Bug fixes
1129
1130- Fixed `Pagination` from calling `onNext` and `onPrevious` while `hasNext` and `hasPrevious` are false for key press events ([#643](https://github.com/Shopify/polaris-react/pull/643))
1131- Removed min-width from `FormLayout` `Items` and applying it only to `Items` used inside a `FormLayout.Group` ([#650](https://github.com/Shopify/polaris-react/pull/650))
1132- Removed added space in `ChoiceList` when choice has children on selection but is not selected ([#665](https://github.com/Shopify/polaris-react/issues/665))
1133- Fixed `errorOverlayText` on `Dropzone` ([#671](https://github.com/Shopify/polaris-react/pull/671))
1134- Updated the `InlineError` text color, the error border-color on form fields and the error `Icon` color to be the same red. ([#676](https://github.com/Shopify/polaris-react/pull/676))
1135- Fixed `AppProvider` server side rendering support ([#696](https://github.com/Shopify/polaris-react/pull/696)) (thanks [@sbstnmsch](https://github.com/sbstnmsch) for the [original issue](https://github.com/Shopify/polaris-react/issues/372))
1136- Fixed `TextField` autocomplete disabling by setting autocomplete="nope" when `autoComplete` prop is `false` ([#708](https://github.com/Shopify/polaris-react/pull/708))
1137
1138### Documentation
1139
1140- Updated documentation links to match the new style guide link structure ([#478](https://github.com/Shopify/polaris-react/pull/478))
1141
1142### Development workflow
1143
1144- `yarn run tophat` has been removed and its functionality has been moved into the `yarn run dev` server. Example editing now supports hot-reloading so you don’t need restart the server anymore.
1145
1146### Dependency upgrades
1147
1148- Bumped `@shopify/polaris-tokens` to v2.0.0. This is a **breaking change** for consumers of color design tokens in languages such as JavaScript and Sass ([full release notes](https://github.com/Shopify/polaris-tokens/blob/master/CHANGELOG.md#200---2018-10-23))
1149
1150## 3.1.1 - 2018-11-19
1151
1152### Bug fixes
1153
1154- Fixed selector import in `DataTable` and `Cell` ([#638](https://github.com/Shopify/polaris-react/pull/638))
1155
1156## 3.1.0 - 2018-11-16
1157
1158### Enhancements
1159
1160- Improved `Avatar` so it falls back to `initials` when the image fails to load ([#557](https://github.com/Shopify/polaris-react/pull/557))
1161- Added `onScrolledToBottom` prop to `Scrollable` ([#568](https://github.com/Shopify/polaris-react/pull/568))
1162
1163### Bug fixes
1164
1165- Fixed `Action`’s selector in `Page`’s `Header` component ([#523](https://github.com/Shopify/polaris-react/pull/523))
1166- Fixed `Card` spacing in small devices ([#608](https://github.com/shopify/polaris-react/pull/608))
1167- Fixed `ResourceList` `BulkActions` that were remaining in fixed position outside the `boundingElement` ([#627](https://github.com/Shopify/polaris-react/pull/627))
1168- Improved readability of `Badge` with `size` small and `status` new for navigation ([#633](https://github.com/shopify/polaris-react/pull/633))
1169
1170## 3.0.1 - 2018-11-14
1171
1172### Bug fixes
1173
1174- Fixed `Datepicker` ranges when `start` and `end` dates are similar but have different references ([#601](https://github.com/Shopify/polaris-react/pull/601))
1175- Fixed `DataTable` column visibility calculation in production environments by using a `data-polaris-header-cell` attribute instead of class-based targeting ([#615](https://github.com/Shopify/polaris-react/pull/615))
1176- Fixed `Navigation.Item` not calling `onClick` on small screens when `onNavigationDismiss` is undefined ([#603](https://github.com/Shopify/polaris-react/pull/603))
1177- Fixed `Autocomplete` empty state example Markdown not parsing correctly ([#592](https://github.com/Shopify/polaris-react/pull/592))
1178- Fixed `TopBar`’s `UserMenu` alignment to be right-aligned when `TopBar` isn’t passed a `searchField` prop ([#597](https://github.com/Shopify/polaris-react/pull/597))
1179- Removed erroneous SCSS file import that rendered Polaris unable to be used in typescript projects without scss support ([#609](https://github.com/Shopify/polaris-react/pull/609))
1180- Fixed `Popover` inconsistent border-radius values ([#605](https://github.com/Shopify/polaris-react/pull/605))
1181- `TextStyle` strong variant now uses a span tag instead of b ([#606](https://github.com/Shopify/polaris-react/pull/606))
1182- Fixed non-blocking context errors when using `Toast` or `Loading` in an embedded app ([#613](https://github.com/Shopify/polaris-react/pull/613))
1183
1184## 3.0.0 - 2018-11-09
1185
1186### Breaking changes
1187
1188- Added padding top and bottom on `Card.Section` when set to full width
1189- Fixed `Portal` rendering by using `componentDidMount` lifecycle hook as opposed to `componentWillMount`
1190- Fixed an issue where clicking a `Link` without a `url` in a form would implicitly submit the form. `Link` can no longer submit forms. Use `<Button submit>` instead.
1191- Renamed the `Keys` enum to align with Shopify naming standards. It is now singular and the properties are in PascalCase. Replace `import {Keys} from '@shopify/polaris'` with `import {Key} from '@shopify/polaris'` and change the casing of the properties, e.g. replace `Keys.DOWN_ARROW` with `Key.DownArrow`.
1192- Added !important to `display: none` in `@print-hidden` mixin
1193
1194#### Embedded apps
1195
1196- Use the Shopify App Bridge in favor of the EASDK. The EASDK has been removed.
1197- Added Shopify App Bridge support to new components `Toast` and `Loading`
1198- Added `target` prop to all actions which get passed to the Shopify App Bridge
1199- Added new `size` and `message` props to `Modal` which aligns with the Shopify App Bridge API
1200- Added new `resourceType`, `initialQuery`, and `showVariants` props to `ResourcePicker` which aligns with the Shopify App Bridge API
1201- Moved embedded `ResourcePicker`, `Modal`, and `Page` to the main bundle and removed the embedded bundle. Imports from `'@shopify/polaris/embedded'` will no longer work, use `'@shopify/polaris'` instead.
1202- Made the `shopOrigin` prop on `AppProvider` optional. It’s now provided by default. If you do provide a `shopOrigin` it now needs to be given without the `'https://'` per the Shopify App Bridge API.
1203- Updated `onSelection` prop on `ResourcePicker`. The shape of the `selectPayload` data has changed and the product `id` is now a `gid`. For example, `/9019381572` is now `gid://shopify/Product/9019381572`. We offer [@shopify/admin-graphql-api-utilities](https://www.npmjs.com/package/@shopify/admin-graphql-api-utilities) to help compose and parse `gid` from Shopify admin.
1204- Updated default values for `ResourcePicker` props to align with the Shopify App Bridge. Set the props `showHidden`, `allowMultiple={false}`, and `showVariants={false}` to get the previous default behavior.
1205- Updated `target` prop type related to embedded apps, use `'APP'`, `'ADMIN_PATH'`, or `'REMOTE'`
1206- Removed `icon` prop from `Page`. Upload your app’s icon in the Shopify Partners dashboard “App setup” section instead.
1207- Removed `title` prop from `ResourcePicker` as setting a title is no longer supported by the Shopify App Bridge
1208- Removed `products` prop from `ResourcePicker`, use `resourceType="Product"` instead
1209- Removed `collections` prop from `ResourcePicker`, use `resourceType="Collection"` instead
1210- Removed `width` and `height` props from `Modal`, use `size` instead
1211- Removed `debug` prop from `AppProvider`, use [Redux DevTools](https://github.com/reduxjs/redux-devtools) instead. Redux DevTools also has [browser extensions](https://github.com/zalmoxisus/redux-devtools-extension).
1212- Removed the `Alert` component, use `Modal` with `message` prop instead
1213- Replaced `easdk` on React context with `appBridge`. Access it via `this.context.polaris.appBridge`.
1214- Removed `this.context.easdk.startLoading()` and `this.context.easdk.stopLoading()`, use the `Loading` component instead
1215- Removed `this.context.easdk.showFlashNotice()`, use the `Toast` component instead
1216- Removed `this.context.easdk.pushState()`, use the [Shopify App Bridge `History` action](https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/navigation/history) instead. The `History` action requires passing the `appBridge` instance which is accessible via `this.context.polaris.appBridge`.
1217- Removed `this.context.easdk.redirect()`, use the [Shopify App Bridge `Redirect` action](https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/navigation/redirect) instead. The `Redirect` action requires passing the `appBridge` instance which is accessible via `this.context.polaris.appBridge`.
1218
1219#### License
1220
1221- Updated the license from MIT to a custom license based on MIT. The new license restricts Polaris usage to applications that integrate or interoperate with Shopify software or services, with additional restrictions for external, stand-alone applications.
1222
1223### New components
1224
1225We’ve released a suite of new components that, when combined, form the application frame of a stand-alone (or non-embedded) Polaris app.
1226
1227#### [Frame](https://polaris.shopify.com/components/structure/frame)
1228
1229The frame component, while not visible in the user interface itself, provides the structure for any non-embedded application. It wraps the main elements and houses the following components:
1230
1231- primary [navigation](https://polaris.shopify.com/components/navigation/navigation)
1232- [top bar](https://polaris.shopify.com/components/structure/top-bar)
1233- [toast](https://polaris.shopify.com/components/feedback-indicators/toast)
1234- [loading](https://polaris.shopify.com/components/feedback-indicators/loading)
1235- [contextual save bar](https://polaris.shopify.com/components/forms/contextual-save-bar)
1236
1237#### [Navigation](https://polaris.shopify.com/components/navigation/navigation)
1238
1239The navigation component is used to display the primary navigation in the sidebar of the [frame](https://polaris.shopify.com/components/structure/frame) of any non-embedded application. Navigation includes a list of links that merchants use to move between sections of the application.
1240
1241#### [TopBar](https://polaris.shopify.com/components/structure/top-bar)
1242
1243The top bar component is always visible at the top of a non-embedded application. Its logo and color can be customized using the [app provider](https://polaris.shopify.com/components/structure/app-provider) component to reflect an application’s brand. Merchants can use it to search an application, access menus, and navigate by clicking on the logo.
1244
1245#### [Toast](https://polaris.shopify.com/components/feedback-indicators/toast)
1246
1247The toast component is a non-disruptive message that appears at the bottom of the interface to provide quick, at-a-glance feedback on the outcome of an action.
1248
1249#### [Loading](https://polaris.shopify.com/components/feedback-indicators/loading)
1250
1251The loading component is used to indicate to merchants that a page is loading or an upload is processing.
1252
1253#### [ContextualSaveBar](https://polaris.shopify.com/components/forms/contextual-save-bar)
1254
1255The contextual save bar tells merchants their options once they have made changes to a form on the page. This component is also shown while creating a new object like a product or customer. Merchants can use this component to save or discard their work.
1256
1257#### [Autocomplete](https://polaris.shopify.com/components/forms/autocomplete)
1258
1259The autocomplete component is an input field that provides selectable suggestions as a merchant types into it. It allows merchants to quickly search through and select from large collections of options.
1260
1261### Enhancements
1262
1263- Changed `Form` to default the `method` to `post` in order to prevent accidental leaking of form details
1264- Added support for boolean type on Choice error prop
1265- Changed the esnext folder to contain individual, minimally transpiled JavaScript component files, as well as raw style and image assets
1266- Added `onPortalCreated` prop to `Portal`
1267- Improved consistency of `Badge` styling
1268- Explicitly specifying `list-style` on `List`
1269
1270### Bug fixes
1271
1272- Fixed console error and used new ref syntax in `DataTable` (thanks to [@duythien0912](https://github.com/duythien0912) for the [original issue](https://github.com/Shopify/polaris-react/issues/403))
1273- Fixed the ability to upload multiple files even when `allowedMultiple` prop is false
1274- Fixed `Datatable` so it resizes with new content (thanks [@andrewpye](https://github.com/andrewpye) for the [original issue](https://github.com/Shopify/polaris-react/issues/387))
1275- Fixed `RangeSlider` linear-gradient so it doesn’t break the css build (thanks [@Ankitjasoliya](https://github.com/Ankitjasoliya) and [@nerfologist](https://github.com/nerfologist) for the [original issue](https://github.com/Shopify/polaris-react/issues/441))
1276- Fixed issue in `Page`, where styling wasn’t being applied correctly to Page Actions
1277- Removed unnecessary bindings on the `Modal`’s `onClose` prop
1278- Rearranged `primaryFooterAction` and `secondaryFooterAction` in `Card` (thanks [@sivakumar-kailasam](https://github.com/sivakumar-kailasam) for the [original issue](https://github.com/Shopify/polaris-react/issues/551))
1279
1280### Documentation
1281
1282- Updated banner guidelines to make it clearer when success banners should be used vs success toasts.
1283- Added examples for iOS and Android section header
1284- Added examples for iOS and Android thumbnail
1285- Added examples for iOS and Android empty state
1286- Added examples for iOS and Android text field
1287- Added examples for iOS and Android select
1288- Added examples for iOS and Android keyboard accessories
1289- Added examples for iOS and Android collapsible
1290- Added examples for iOS and Android list
1291- Clarified placement and usage of `Banner`
1292- Added an explanation to `Modal` about why it can’t be closed by clicking outside the modal and should only be closed by clicking `X` or `Cancel`
1293
1294### Development workflow
1295
1296- Moved sub-sub-components within `ResourceList` into components folders
1297- Removed empty state from `ResourceList` if there are no items and `loading` is true
1298- Move to use sewing-kit for test running, updating to Jest 23 in the process. This gives us working sourcemaps for code coverage
1299- Improved accessibility testing checklist
1300- Updated development node environment to 10.13.0
1301- Added shopify/jest plugin to eslint config
1302
1303#### Open development
1304
1305- Added [contribution guidelines](https://github.com/Shopify/polaris-react/blob/master/.github/CONTRIBUTING.md)
1306- Added [tophatting documentation](https://github.com/Shopify/polaris-react/blob/master/documentation/Tophatting.md)
1307- Updated the project README
1308- Moved active development to the public repository
1309
1310## 2.12.1 - 2018-10-11
1311
1312### Bug fixes
1313
1314- Fixes type imports in the build
1315
1316## 2.12.0 - 2018-10-11
1317
1318### Enhancements
1319
1320- Removed tip from `Popover`
1321- Increased speed of `Popover` transition from 500ms to 100ms
1322- Improved text contrast in `Badge`.
1323- Added named `medium` size to Button that renders the same as omiting the size attribute
1324
1325### Bug fixes
1326
1327- Fixed typo in `Collapsible` example
1328- Fixed padding and margins on `SkeletonPage` to match `Page`
1329- Fixed spacing between `Page` title and metadata
1330
1331### Documentation
1332
1333- Made `ActionList`, `OptionList` and `Popover` examples active by default so previews are visible without interacting
1334- Improved the manual accessibility checklist
1335
1336### Development workflow
1337
1338- Batched Percy snapshots per component
1339
1340## 2.11.0 - 2018-10-03
1341
1342### Enhancements
1343
1344- `Tab.Item` with a `url` prop now renders an `UnstyledLink` instead of a `Button` when displayed in `Popover` and you can now keyboard navigate the disclosure in `Tabs`
1345- Refs can be placed on `DropZone.FileUpload`
1346- Use the new context API in `ResourceList`
1347- Use the new context API in `DropZone`
1348- Update example description in `ExceptionList` documentation
1349- Move Modal CloseButton into its own subcomponent, instead of being part of the Header subcomponent. This is an internal implementation detail if you are using the React component. If you are using (s)css and are defining class names manually you will need to update references to `Polaris-Modal-Header__CloseButton` and `Polaris-Modal-Header--withoutTitle` to `Polaris-Modal-CloseButton` and `Polaris-Modal-CloseButton--withoutTitle` respectively.
1350
1351### Development workflow
1352
1353- Added `d.ts` files to test coverage ignore
1354- `Page` is no longer self-closing in the playground
1355
1356### Bug fixes
1357
1358- Fixed `Button` alignment issue caused by unnecessary icon markup rendering ([#2339](Fixing button alignment #2339)) (thanks to ([@mbaumbach](https://github.com/mbaumbach)) for the ([original issue](https://github.com/Shopify/polaris-react/issues/429)))
1359- Fixed console error and used new ref syntax in `DataTable` (thanks to [@duythien0912](https://github.com/duythien0912) for the [original issue](https://github.com/Shopify/polaris-react/issues/403))
1360- Fixed margin of `InlineError` text to align with the `ChoiceList` labels
1361- Replaced hardcoded `rem` values with globally scalable ones on `DataTable`’s collapsed shadow, and `TextStyle` code blocks
1362- Fixed spacing of numbered `List` for double digits ([#121](https://github.com/Shopify/polaris-ux/issues/121))
1363- Fixed `ProgressBar` not showing up in Windows high contrast mode ([#1708](https://github.com/Shopify/polaris-react/issues/1708))
1364- Top aligned all cells in `DataTable`
1365- Fixed stacking order of loading overlay in `ResourceList`
1366- Fixed form inputs in `Popover` that were disappearing instead of top aligning thanks to [@mbaumbach](https://github.com/mbaumbach) for the [original issue](https://github.com/Shopify/polaris-react/issues/435)
1367- Removed a redundant class on `OptionList` list items
1368
1369### Documentation
1370
1371- Made `Modal` examples show the modal dialog by default
1372- Changed fitted `Tabs` to have equal width when enough space is present ([#2314](https://github.com/Shopify/polaris-react/issues/2314))
1373
1374### New components
1375
1376#### withContext
1377
1378Use `withContext` to pass consumer context to a component.
1379
1380#### withRef
1381
1382Use `withRef` with `compose` to forwardRefs to a component.
1383
1384## 2.10.0 - 2018-09-18
1385
1386### Enhancements
1387
1388- Updated `Button` to accept a `React.ReactNode` for its `icon` prop
1389
1390### Documentation
1391
1392- Refined accessibility checklist
1393
1394### Bug Fixes
1395
1396- Added truncation to `Tag`
1397
1398## 2.9.0 - 2018-09-10
1399
1400### Enhancements
1401
1402- Updated date filter labels in resource list
1403- Changed `placeholder` prop in `Select` to be the default selection
1404- Added a `loading` prop to `ResourceList` that places a spinner overtop items and disables bulk actions
1405
1406### Documentation
1407
1408- Clarified when and how to use icons in the banner component
1409- Updated footer help component guidelines to include content instructions for app developers
1410
1411### Bug fixes
1412
1413- Fixed resource list component to correctly handle inclusive filter keys
1414- Fixed date field in DateSelector to not render an error when date is added by the date picker and field is blurred
1415- Fixed pagination from firing keypress events while focus is inside inputs or contenteditables
1416- Fixed `EmptyState` horizontally scrolling when fully condensed
1417- Fixed the bottom margin of elements inside `Page` being ignored in some browsers
1418- Added required `url` prop to `breadcrumbs` in `Page` component examples
1419- Fixed `ActionList` wrapping text within a `Popover`
1420- Fixed `Banner` spacing when inside of a section
1421- Fixed `Stack` so it doesn’t add extra spacing between items in Safari
1422
1423## 2.8.0 - 2018-08-30
1424
1425### Bug fixes
1426
1427- Reverted a change that caused the built embedded.js bundle to be way larger than it should be due to broad imports
1428
1429### Enhancements
1430
1431- Added support for boolean type on Choice error prop
1432
1433### Documentation
1434
1435- Updated banner guidelines to make it clearer when success banners should be used vs success toasts.
1436- Updated display text documentation to have a separate example for medium and large display
1437
1438## 2.7.2 - 2018-08-27
1439
1440### Bug fixes
1441
1442- Reverted a change that caused items in a `Popover` component not to be clickable
1443
1444## 2.7.1 - 2018-08-27
1445
1446### Documentation
1447
1448- Fixed paths to images in the “Attention badge” example
1449
1450### Bug fixes
1451
1452- Fixed the `Page` component’s `primaryAction` to support `LoadableAction`s and `DisableableAction`s
1453
1454## 2.7.0 - 2018-08-27
1455
1456### Enhancements
1457
1458- Adjusted spacing for `ChoiceChildren` in `ChoiceList` for readability
1459- Made `Card.Header` a separate publicly accessible component
1460- Added support for complex operators in `ResourceList` component
1461- Updated the `Page` component’s `primaryAction` to support `Button` props.
1462- Added validation for non-numeric input in a type="number" `TextField`
1463- Added circle information icon
1464
1465### Documentation
1466
1467- Updated `Banner` guidelines to make it clearer when success banners should be used vs success toasts
1468
1469## 2.6.1 - 2018-08-21
1470
1471### Development workflow
1472
1473- Moved `pa11y` and `object-hash` from dependencies to devDependencies
1474
1475### Bug fixes
1476
1477- Fixed inconsistent `DropZone` error styling
1478
1479## 2.6.0 - 2018-08-21
1480
1481### Development workflow
1482
1483- Added a `test:coverage` script to gather and display test coverage results
1484- Added Codecov test coverage checks to pull requests
1485- Added automated a11y testing to CI
1486
1487### Enhancements
1488
1489- Added support for `titleMetadata` in `Page` component
1490- Added support for `FilterType.DateSelector` in `ResourceList` component
1491- Added `code` as an accepted `variation` of the `TextStyle` component to provide support for accessible markup and styling of inline code snippets and code-like text
1492- Added new `border-width` SCSS function
1493- Added support for `fullWidth` and `connectedTop` props on `ButtonGroup`
1494- Added `label` prop to `DropZone` for better accessibility
1495- Added support for `RadioButton` to accept a block as a `label`
1496- Added a `singleColumn` prop to the `SkeletonPage` component
1497- Updated the transition on large `Modal` to match the default transition
1498- Added `nextKeys`, `previousKeys`, `nextTooltip`, and `previousTooltip` props to the `Pagination` component to support keypress handling and `Tooltip` in pagination buttons.
1499- Added examples to the `Layout` component documentation for two and three column grid layouts
1500- Added an export for the `Progress` type to support downstream typechecking of the `Badge` component `progress` prop
1501- Added an `iFrameName` prop to the `Modal` component to support named iframe children
1502- Added a `ScrollTo` subcomponent to the `Scrollable` component to support scrolling to a child node programmatically
1503- Added support for the `Button` component to accept an array of strings as children
1504- Changed the primary focus target of an activated `Popover` from the first focusable child to the `Popover` itself
1505- Added an improved error message when the child of an embedded `Alert` component is not a string (thanks [@superwhykz](https://github.com/superwhykz) for the [original issue](https://github.com/Shopify/polaris-react/issues/378))
1506- Added a minimum width to tab items to improve touch target sizing and account for smaller tab titles
1507- Added support for additional accessibility attributes to the `TextField` and `OptionList` components
1508- Added support for `OptionList` with `Avatar`, `Icon`, and `Thumbnail` when `options` descriptors have a `media` property
1509- Added support for destructive `ActionList` items
1510- Added support for `OptionList` `options` descriptors to accept a block for the `label` property
1511- Added `$page-max-width` variable to capture page calculated `max-width` value and `page-when-not-max-width` mixin to trigger when page is resized horizontally
1512- Added support for select error messages to be optional
1513- Updated the `Breadcrumbs` component to support the `CallbackAction` type as a prop (thanks [@dylan](https://github.com/dylan) for the [current issue](https://github.com/Shopify/polaris-react/issues/278) and everyone who identified this.)
1514- Added support for `TextField` error messages to be optional
1515- Added a `disabled` prop to the `Choice` component. `Checkbox` and `RadioButton` labels are now styled to reflect their disabled state
1516- Added support for Windows High Contrast mode in the `Select`, `Checkbox` and `RadioButton` components
1517
1518### Bug fixes
1519
1520- Fixed `TextField` resizer rendering when `multiline` was false
1521- Fixed `Modal` header condensing
1522- Fixed `Tooltip` so active prop activates on initial render
1523- Fixed `Popover` border radius and left and right alignment
1524- Fixed visibility of the hidden implicit submit button in `Form` (thanks [@cgenevier](https://github.com/cgenevier) for the [original issue](https://github.com/Shopify/polaris-react/issues/386))
1525- Fixed alignment of wrapped empty state actions
1526- Swapped the import and export icons
1527- Fixed incorrect `DataTable` column count and content skipping in assistive technologies
1528- Fixed unintended form submittal by action list items enclosed in a `form` (thanks [@andrewpye](https://github.com/andrewpye) for the [original issue](https://github.com/Shopify/polaris-react/issues/391))
1529- Fixed text alignment of multiline `OptionList` option text
1530- Fixed an issue where the `Stack` component would render incorrectly nested items
1531- Fixed spacing above annotated sections on smaller screens
1532- Fixed an issue that caused problems for some build tools
1533- Fixed the word-break of long text in `Label` and `Banner` on small screens
1534
1535### Documentation
1536
1537- Added examples for iOS and Android `RadioButton`
1538- Added examples for iOS and Android `Banner`
1539- Added `Toast` component
1540- Added examples for iOS and Android `Button`
1541- Added examples for iOS and Android `ButtonGroup`
1542- Added examples for iOS and Android `Badge`
1543- Added examples for iOS and Android `Avatar`
1544- Added `Stepper` component
1545
1546### New components
1547
1548#### [InlineError](https://polaris.shopify.com/components/forms/inline-error)
1549
1550Use inline errors to describe custom form inputs or form groups when invalid.
1551
1552## 2.5.0 - 2018-07-20
1553
1554### Enhancements
1555
1556- Updated sub component structure
1557- Added `weekStartsOn` prop to `DatePicker`
1558
1559### Bug fixes
1560
1561- Remove `stickyManager` from `AppProviderProps` interface
1562- Fixed a bug where `Layout.AnnotatedSection` would output a wrapper div for a `description` even when its contents were empty
1563- Remove extra padding from annotated section
1564
1565### Documentation
1566
1567- Added iOS and Android examples to the `Card` component
1568- Added iOS and Android examples to the `ChoiceList` component
1569
1570### Development workflow
1571
1572- Renamed `yarn start:vrt` to `yarn tophat` and updated the folder name to match
1573- Improved `yarn tophat`’s design, and added a `/all-components` route
1574
1575### Enhancements
1576
1577- Added `weekStartsOn` prop to `DatePicker`
1578
1579## 2.4.0 - 2018-07-12
1580
1581### Enhancements
1582
1583- Changed `Form` to submit a form by default when the <kbd>enter</kbd> key is pressed, and added the prop `implicitSubmit` to disable this default
1584
1585### Bug fixes
1586
1587- Fixed `TextField` padding when a `prefix` or `suffix` is included
1588
1589## 2.3.1 - 2018-07-05
1590
1591### Enhancements
1592
1593- Removed the min-width of 320px from `ResourceList`
1594
1595### Bug fixes
1596
1597- Resolve issue with `RangeSlider` component not accepting `0` as a `max` value
1598- Slightly reduced spacing for `prefix` and `suffix` on the `RangeSlider` component
1599- Fixed spacing for `prefix` and `suffix` on the `TextField` component
1600- Fixed height of cells in `DataTable` that are rendered after initial page load (for example: in a `Tab` or a `Popover`) (thanks [@flewid](https://github.com/flewid) for the [original issue](https://github.com/Shopify/polaris-react/issues/344))
1601- Fixed `DatePicker` month styling for previous years
1602
1603## 2.3.0 - 2018-07-03
1604
1605### New components
1606
1607#### [Option list](https://polaris.shopify.com/components/lists-and-tables/option-list)
1608
1609Use `OptionList` to present a group of selectable items outside of the context of a `Form`.
1610
1611### Documentation
1612
1613- Fixed `Form` examples
1614
1615### Enhancements
1616
1617- Added `prefix` and `suffix` props to `RangeSlider` for better layout control
1618- Added testing documentation and examples in `AppProvider`
1619- Performance: optimized avatar SVG files
1620- Updated `yarn run optimize` to add new line at the end of SVG files
1621- Added a more compact variant of `Select`, with the form label appearing inside the control)
1622
1623### Bug fixes
1624
1625- Adjusted padding on `TextField` to work with Chrome’s autofill
1626- Fixed a regression where the version of Polaris wasn’t globally available anymore
1627- Updated the interaction state visuals for `ActionList`
1628- Fixed z-index on `ResourceList` header with sorting options (thanks [@janklimo](https://github.com/janklimo) for the [original issue](https://github.com/Shopify/polaris-react/issues/355))
1629- Fixed an issue where `RadioButton` was not focusable in Safari
1630- Fixed spacing for annotated section descriptions
1631- Fixed a bug in EASDK action transforms that prevented external urls in embedded apps from opening (thanks [@dansundy](https://github.com/dansundy) for the [original issue](https://github.com/Shopify/polaris-react/issues/203))
1632
1633### Dependency updates
1634
1635- Updated [`@shopify/polaris-tokens`](https://npmjs.com/package/@shopify/polaris-tokens), the single source of truth for colors
1636
1637## 2.2.0 - 2018-06-12
1638
1639### New components
1640
1641#### [Range slider](https://polaris.shopify.com/components/forms/range-slider)
1642
1643Use `RangeSlider` to select a number value between a min and max range.
1644
1645### Enhancements
1646
1647- Added a fixed prop to `Popover` allowing for a fixed position
1648- Added badge prop to the `ItemDescriptor` type and action group
1649- Added `text-breakword` mixin for easier word breaking when dealing with long unspaced strings
1650
1651### Bug fixes
1652
1653- Fixed unexpected form submission when switching tabs in a `Tabs` component wrapped in a `Form`
1654- Added missing `'Shopify.API.setWindowLocation'` message handler to the EASDK
1655
1656## 2.1.2 - 2018-06-06
1657
1658### Enhancements
1659
1660- Added support for `Card` to accept a block for a title
1661- Added an intermediate prop typing for `Link` to allow redefinition of prop definitions
1662
1663### Bug fixes
1664
1665- Fixed an issue where `ResourceList` filters lost padding (thanks [@BarryCarlyon](https://github.com/BarryCarlyon) for the [original issue](https://github.com/Shopify/polaris-react/issues/330))
1666- Fixed unexpected focus jumps when `DatePicker` props are updated
1667- Fixed the spacing and text wrapping of `ExceptionList` title and description
1668
1669## 2.1.1 - 2018-05-30
1670
1671### Bug fixes
1672
1673- Fixed `DropZone` to prevent it from kicking into small size too soon
1674
1675### Documentation
1676
1677- Various content and markdown fixes
1678
1679## 2.1.0 - 2018-05-03
1680
1681### New components
1682
1683#### [Exception list](https://polaris.shopify.com/components/lists-and-tables/exception-list)
1684
1685Use Exception lists to draw the merchant’s attention to important information that adds extra context to a task.
1686
1687### Enhancements
1688
1689- Added an `ellipsis` prop to `ActionList.Item` allowing for an ellipsis suffix after the content
1690- Added a `preferredAlignment` prop to `Popover` allowing it to be aligned to the left, center, or right of its activator
1691- Updated styling for `Banner` that appear in a `Card` or a `Modal`
1692- Added new size to `DropZone` component
1693- Exposed Group interface from the `Select` component
1694- Renamed `plain-list` mixin to `unstyled-list`
1695- Removed padding from `DropZone` and applied it to `FileUpload` instead
1696
1697### Bug fixes
1698
1699- Fixed unexpected window scroll on rendering `DataTable` (thanks [@mfurniss](https://github.com/mfurniss) for the [original issue](https://github.com/Shopify/polaris-react/issues/317))
1700- Fixed focused inner interaction state on `ResourceList.Item` for reverse tabbing
1701- Fixed border radius on `Card` to match the padding on `Page`
1702- Added `target` to the `breadcrumb` prop on `Page` (thanks [@sdn90](https://github.com/sdn90) for the [original issue](https://github.com/Shopify/polaris-react/issues/306))
1703- Fixed visual representation of disabled bulk action buttons in `ResourceList`
1704- Fixed margins of a `fullWidth` `Popover` that appears above its activator
1705- Fixed rendering of `Popover` when activator rerenders (thanks [@nerfologist](https://github.com/nerfologist) for the [original issue](https://github.com/Shopify/polaris-react/issues/324))
1706- Fixed `z-index` calculation for `PositionOverlay` and `Dialog`
1707- Fixed an issue where selecting a date in `DatePicker` would submit its enclosing form
1708- Fixed `ResourceList` reverse tabbing focus interaction on action buttons
1709- Fixed padding in the case where a `ResourceList` had no filters
1710
1711## 2.0.0 - 2018-05-07
1712
1713Summary: this is the first major version of Polaris React since launch. Included in this release are:
1714
1715- Several new components, including `DataTable`, `DropZone`, `AppProvider`, and `Modal`
1716- Improvements to existing components, such as `ResourceList`, `ChoiceList`, and `Card`
1717- A few breaking API changes
1718
1719### Breaking changes
1720
1721#### React 16+
1722
1723We’re removing support for React 15 in order to make full use of some of the new features in React 16, such as fragments, error boundaries, and improved server-side rendering.
1724
1725##### Upgrade instructions
1726
1727Upgrade your app to the latest version of React.
1728
1729#### [App provider](https://polaris.shopify.com/components/structure/app-provider)
1730
1731The `AppProvider` component is now required in your app for Polaris components to function properly.
1732
1733##### Upgrade instructions
1734
1735Wrap your app in the `AppProvider` component.
1736
1737#### [Collapsible](https://polaris.shopify.com/components/behavior/collapsible) component requires an `id` prop
1738
1739For accessibility reasons, the `id` prop is now required on the `Collapsible` component.
1740
1741##### Upgrade instructions
1742
1743Pass a unique value as an `id` to all `Collapsible` components. For example, `<Collapsible id="my-unique-id">`.
1744
1745#### EmbeddedApp component has been removed
1746
1747The `EmbeddedApp` component has been removed. The `AppProvider` component now accepts the configuration needed to initialize an embedded app.
1748
1749##### Upgrade instructions
1750
1751Use the `AppProvider` component with the `apiKey` and `shopOrigin` props.
1752
1753#### [Resource list](https://polaris.shopify.com/components/lists-and-tables/resource-list#navigation)
1754
1755Shopify is organized around objects that represent a merchant’s business, such as customers, products, and orders. Each individual order, for example, is given a dedicated page that can be linked to. In Shopify, we call these types of objects resources.
1756
1757The resource list component functions as:
1758
1759- A content format, presenting a set of individual resources in a compact form
1760- A system for taking action on one or more individual resources
1761- A way to navigate to the details page of an individual resource
1762
1763Our current resource list component gave you some nice defaults out of the box, but didn’t take you much further than that. We recognized that each of these lists is unique and contains different information that is important to the merchant.
1764
1765Our new resource list allow you to build custom items in the list, with their own layout, content, and styling. This gives you a powerful way to build these sorts of lists going forward.
1766
1767We’ve also included in depth documentation and a tutorial on how to build your own custom resource list items.
1768
1769#### Tabs no longer accept `title` prop
1770
1771To be more consistent with our other component APIs, the `Tabs` component now uses `content` instead of `title`.
1772
1773##### Upgrade instructions
1774
1775Change all instances of `title` to be `content` instead.
1776
1777#### TextField onChange is required
1778
1779Because we require you to manage state for your inputs, we decided to make `onChange` required for `TextField` to avoid confusion.
1780
1781##### Upgrade instructions
1782
1783Add an `onChange` callback to each use of `TextField` that is not disabled or readonly.
1784
1785#### Removed default white color from Icon CSS
1786
1787The CSS for `Icon` will no longer apply a color to icons by default. You must use the `color` prop on the `Icon` component to specify the color.
1788
1789##### Upgrade instructions
1790
1791Use `color` prop on all instances of `Icon` component.
1792
1793#### Anchor tags are no longer styled by Polaris components
1794
1795To avoid conflicts with other styling or frameworks, we’re removing the styling we globally applied to all `a` elements.
1796
1797##### Upgrade instructions
1798
1799Use the `Link` component instead.
1800
1801#### Changed Alert onCancel prop to onClose
1802
1803This change only impacts users of the Sass version of Polaris, more specifically the `color()` function. The `color($hue, $value: base, $for-background: null)` function in Sass now accepts strings for `$hue` and `$value` as advertised in [the color function documentation](https://polaris.shopify.com/sassdoc/#undefined-function-color).
1804
1805##### Upgrade instructions
1806
1807If you’re using VS Code, here are the exact search / replace instructions to follow (toggle “Use Regular Expression”):
1808
1809- replace `\bcolor\(([a-z-]+)\)` with `color('$1')`
1810- replace `\bcolor\(([a-z-]+), ([a-z-]+)\)` with `color('$1', '$2')`
1811- replace `\bcolor\(([a-z-]+), ([a-z-]+), (.*)\)` with `color('$1', '$2', $3)`
1812
1813### New components
1814
1815#### [Data table](https://polaris.shopify.com/components/lists-and-tables/data-table)
1816
1817Since launching Polaris components, we’ve had many people ask why we didn’t include tables. While we have been moving away from using tables for comparisons that aren’t tabular data (resource lists, for example), we recognize that there are still cases to use them.
1818
1819The data table component is our answer to those cases. While data visualizations represents part of a data set, data tables are used to organize and display all the information from a data set, allowing merchants view details from the entire set. This helps merchants compare and analyze all the data in a unified way.
1820
1821#### [Drop zone](https://polaris.shopify.com/components/actions/drop-zone#navigation)
1822
1823Currently we have several different interfaces for uploading files across Shopify, which leads to a lack of consistency and some missing features and capabilities. To solve this problem, we’re releasing a new drop zone component.
1824
1825This new component allows merchants to upload files by dragging and dropping them into an area on a page. The component handles file type validation, dropping onto the window, and more, meaning more ease of use for merchants.
1826
1827#### [Modal](https://polaris.shopify.com/components/overlays/modal#navigation)
1828
1829In the original Polaris React, the modal component was only available to embedded apps. No longer. Our new modal component is universal in that it can be used in either stand-alone or embedded apps, and will handle the correct behavior for you.
1830
1831#### [App provider](https://polaris.shopify.com/components/structure/app-provider#navigation)
1832
1833The app provider is a required component that enables sharing global app config with the components in Polaris. This is used for the internationalization of strings in Polaris components, as well as set other configuration such as a custom link component that all the Polaris components will use. This unlocks new ways for us to share configuration at an app level and have the components react to that configuration.
1834
1835### Enhancements
1836
1837- Added `error` prop to `ChoiceList`
1838- `TextField`, `Select`, and `Checkbox` now accept the types `string` or `ReactElement` for the `error` prop
1839- Added optional `id` props to more components, and restructured the prop definitions to allow projects to make `id` props mandatory
1840- Added `fullWidth` prop to `Card.Section`
1841- Added `fullHeight` prop to `Popover` to override max-height
1842- Added `allowRange` as a property for `DatePicker`
1843- Added the `external` option to the `secondaryAction.action` prop on the `Banner` component. Thank you to ([Andrew Cargill](https://github.com/cargix1)) for the issue ([#236](https://github.com/Shopify/polaris-react/issues/236))
1844
1845### Bug fixes
1846
1847- Enforced subdued description `TextStyle` in `AnnotatedSection`
1848- Fixed overflow of `TextField` that caused the border to be cut off
1849- Allowed specific props in the `TextField` component to pass through properties to the input child
1850- Fixed `ActionList` component to provide section dividers when a `title` was not provided
1851- Fixed an issue in the `Select` component where placeholder didn’t properly appear on Firefox and appeared disabled on all browsers
1852
1853## 1.14.2 - 2018-05-02
1854
1855_This will be the last v1.x release outside of critical security fixes._
1856
1857### Bug fixes
1858
1859- Add margin-left spacing to disclosure icon within `Button` component
1860- Remove margins on segmented `ButtonGroup`
1861- Fixed text alignment of `Link` so that it inherits from its parent node
1862
1863## 1.14.1 - 2018-04-10
1864
1865### Bug fixes
1866
1867- Fixing an error with the release process
1868
1869## 1.14.0 - 2018-04-10
1870
1871### Enhancements
1872
1873- Changed `term` in `DescriptionList` component to accept `React.ReactNode` to allow for more than just `string` type
1874
1875## 1.13.1 - 2018-03-29
1876
1877- Added missing `publishConfig.access` setting in `package.json`, in accordance with the new Shipit requirements for public npm packages
1878
1879## 1.13.0 - 2018-03-29
1880
1881### Enhancements
1882
1883- Added an `id` prop to Collapsible to be referenced by the `aria-controls` attribute of the component triggering the collapse
1884
1885### Bug fixes
1886
1887- Fixed external prop not working within `ActionList` component
1888- Fixed a syntax error in one of the `Card` component examples (thanks [@meecrobe](https://github.com/meecrobe) for the [original issue](https://github.com/Shopify/polaris-react/issues/281))
1889
1890## 1.12.4 - 2018-03-19
1891
1892- Enhanced `Avatar` to work better when provided non-square images
1893- Move documentation file so it’s picked up by the style guide
1894
1895## 1.12.3 - 2018-03-16
1896
1897### Bug fixes
1898
1899- Fixed disclosure centering on the `Tabs` component
1900- Fixed an issue where a style void would appear between breakpoints at high text zoom levels
1901
1902### Documentation
1903
1904- Removed purpose section from component READMEs
1905- Added `EmbeddedPage` under the Embedded section
1906- Added “Using embedded components” section
1907- Added screenshots to the embedded components
1908- Clarified usage of `Card` header and `FooterActions`
1909
1910## 1.12.2 - 2018-03-08
1911
1912### Documentation
1913
1914- Moving property descriptions out of READMEs and into source files
1915
1916## 1.12.1 - 2018-03-06
1917
1918### Bug fixes
1919
1920- Fixed server-side environments
1921
1922### Documentation
1923
1924- Updated component examples that use state to use an es6 class
1925
1926## 1.12.0 - 2018-02-28
1927
1928### Bug fixes
1929
1930- Fixed `TextField` overflow issues when inside `Scrollable`
1931- Fixed `Select` focus state bug occuring in Firefox
1932- Fixed vertical alignment of text within full width variant of the button component
1933
1934### Enhancements
1935
1936- Changed `Checkbox` label to allow string or React.ReactNode
1937- Update `TextField` type with currency
1938- Added `ariaControls`, `ariaExpanded` prop to `Button`
1939- Updated the base red color to improve contrast
1940- Added a notification icon to the bundled icons available to use in the icon component’s source prop
1941- Exposed Status from the `Banner` component
1942- Added `titleHidden` prop to `Page`
1943
1944### Documentation
1945
1946- Clarified intended usage for `EmptyState`
1947
1948### Chores
1949
1950- Added version number to source
1951
1952## 1.11.0 - 2018-02-13
1953
1954- Changed Action to Disableable Action in Card
1955
1956### Enhancements
1957
1958- Added `renderChildren` prop to `ChoiceList` component
1959
1960### Bug fixes
1961
1962- Fixed an issue with `FooterHelp` links not expanding to full-width on mobile devices ([#759](https://github.com/Shopify/polaris-react/issues/759))
1963- Added breadcrumbs to `SkeletonPage`
1964- Added max-width and auto margin to `EmptyState`
1965- Fixed outline `Button` disabled state styles
1966- Fixed `Tag` so the `onRemove` function is not improperly called (thanks [@chaddjohnson](https://github.com/chaddjohnson) for the [original issue](https://github.com/Shopify/polaris-react/issues/235))
1967- Fixed border on inputs disabled state
1968- Fixed an issue in `TextInput`, when you increment or decrement with a float value, and the digits after the decimal point where wrong (thanks [@cgidzinski](https://github.com/cgidzinski) for the [original issue](https://github.com/Shopify/polaris-react/issues/761))
1969- Added top alignment to FormLayout.Group
1970
1971### Documentation
1972
1973- Fixed capitalization of prop names in `Pagination` component’s documentation (thanks [@donnguyen](https://github.com/donnguyen) for the [original issue](https://github.com/Shopify/polaris-react/issues/141))
1974- Exposed Option from the `Select` component
1975
1976## 1.10.2 - 2018-01-22
1977
1978### Bug fixes
1979
1980- Fixed the public repository’s build (which was missing the new CircleCI configuration files)
1981
1982## 1.10.1 - 2018-01-19
1983
1984### Bug fixes
1985
1986- Fixed CSS-only `Checkbox` (thanks [@daddy88](https://github.com/daddy88) for the [original issue](https://github.com/Shopify/polaris-react/issues/252))
1987
1988## 1.10.0 - 2018-01-17
1989
1990- Restored the correct `latest` version to the CDN
1991- Fixed rgbToHsb function when red is the largest number and added tests (thanks [@emcmanus](https://github.com/emcmanus) for the [original issue](https://github.com/Shopify/polaris-react/issues/251))
1992- Fixed an issue where a hard-coded path would cause the build to fail on Windows (thanks [@Invader444](https://github.com/Invader444) for the [original issue](https://github.com/Shopify/polaris-react/issues/245) and [pull request](https://github.com/Shopify/polaris-react/pull/246))
1993- Added `onClick` to `UnstyledLink`
1994- Added tests to `Link`
1995
1996- Added tests for `ColorPicker` color utilities
1997
1998## 1.9.1 - 2017-12-21
1999
2000### Documentation
2001
2002- Ammending changelog
2003
2004## 1.9.0 - 2017-12-21
2005
2006### Enhancements
2007
2008- Added `onActionAnyItem` prop to action list and used to close `Page` `actionGroups` on click or keypress of any item
2009- Added `content` prop to `Tabs` and deprecated use of `title`
2010- Added `TextContainer` component
2011- Added `idForItem` prop to resource list
2012- Added `fullWidth` prop to layout section
2013- Added `indeterminate` as option for checkbox `checked` prop value
2014- Added `singleColumn` prop to page
2015- Added `focused` prop to `TextField`
2016
2017### Bug fixes
2018
2019- Fixed positioned overlay not responding to `Scrollable` container events
2020- Fixed first focusable item focus in `Popover`
2021- Fixed typos in the select component documentation (thanks [@mattchidley](https://github.com/mattchidley) for the [original issue](https://github.com/Shopify/polaris-react/issues/224))
2022
2023## 1.8.3 - 2017-10-26
2024
2025### Bug fixes
2026
2027- Moved react-transition-group from a dev dependency to a dependency
2028
2029## 1.8.2 - 2017-10-24
2030
2031### Bug fixes
2032
2033- Fixed `Stack` not returning children
2034
2035## 1.8.1 - 2017-10-24
2036
2037### Bug fixes
2038
2039- Added missing yarn config file which was causing the build to fail
2040
2041## 1.8.0 - 2017-10-23
2042
2043### Documentation
2044
2045- Updated README to consistently use contractions (thanks [@stefanmiodrag](https://github.com/stefanmiodrag) for the [original pull request](https://github.com/Shopify/polaris-react/pull/191))
2046- Improved example description for `Layout` component
2047- Updated `Spinner` documentation
2048- Improved component purpose documentation across components
2049- Improved documentation for `TextStyle` component
2050
2051### Enhancements
2052
2053- Added support for React 16
2054- Added an option to show or hide unpublished products from the `ResourcePicker`
2055- Changed `Popover` component to use `react-transition-group` instead of our deprecated custom version in `@shopify/react-utilities`
2056- Added new `ProgressBar` component
2057- Changed today’s date to be tabbable and clearly indicated in `DatePicker`
2058- Added support for disabled choices in `ChoiceList` component
2059- Added support for disabled secondary `Page` actions
2060- Changed `TextField` and `Select` to now focus on clicking only within the area from the input to the end of its label text
2061
2062### Bug fixes
2063
2064- Fixed `Layout` component example description
2065- Fixed `SkeletonPage` header appearing in embedded apps (thanks [@rkbhochalya](https://github.com/rkbhochalya) for the [original issue](https://github.com/Shopify/polaris-react/issues/202)))
2066- Fixed border-radius on `ActionList` component in Chrome
2067
2068## 1.7.0 - 2017-10-06
2069
2070### Enhancements
2071
2072- Added `SkeletonPage`, `SkeletonBodyText` and `SkeletonDisplayText` components
2073- Added `Spinner` component
2074- Added hint prop to `Scrollable` and use in `Popover`
2075- Updated `Button` component to use new `Spinner` component
2076- Added external link support for `Page` `secondaryActions`
2077- Enabled the `primaryAction` of `PageActions` to be loading
2078- `Stack` now supports non-wrapping layouts on small screens
2079- Updated `TextField` min and max documentation
2080- Breadcrumbs now accept a callback through onAction (thanks [@arypbatista](https://github.com/arypbatista) for the [original issue](https://github.com/Shopify/polaris-react/issues/188))
2081
2082### Bug fixes
2083
2084- Fixed issue with embedded app breadcrumb linking to Shopify settings page (thanks [@cargix1](https://github.com/cargix1) for the [original issue](https://github.com/Shopify/polaris-react/issues/116))
2085- Fixed `Avatar` to display image and initials simultaneously
2086- Fixed various links to embedded components
2087- Fixed left and right ends of `TextField` not responding to clicks
2088- `RadioButton` & `Checkbox` now focus on clicking only within the area from the input to the end of its label text
2089- Fixed plain and `fullWidth` `Button` alignment
2090- Add a minor delay to `Tooltip` display
2091
2092## 1.6.0 - 2017-09-25
2093
2094### Enhancements
2095
2096- Documented disabled prop for `Checkbox` and `RadioButton` (thanks [@LeoAref](https://github.com/LeoAref) for the [original issue](https://github.com/Shopify/polaris-react/issues/114))
2097- Documented progress prop for `Badge` (thanks [@sp4cecat](https://github.com/sp4cecat) for the [original issue](https://github.com/Shopify/polaris-react/issues/172))
2098- Added loading prop to `Button` (thanks [@bakura10](https://github.com/bakura10) for the [original issue](https://github.com/Shopify/polaris-react/issues/30))
2099- Documented complex `Select` option (thanks [@sp4cecat](https://github.com/sp4cecat) for the [original issue](https://github.com/Shopify/polaris-react/issues/174))
2100- Documented `TextStyle` component
2101- Improved `Avatar` typography spacing
2102- Added subtract icon
2103- Improved acessibility for `Pagination`
2104
2105### Bug fixes
2106
2107- Fixed failed dependency installation for unauthenticated GitHub users (thanks [@mikeyhew](https://github.com/mikeyhew) for the [original issue](https://github.com/Shopify/polaris-react/issues/184))
2108- Fixed `Page` header spacing
2109- Fixed `TextField` focus ring transition
2110- Fixed `Popover` not resizing on content updates
2111
2112## 1.5.2 - 2017-09-18
2113
2114### Bug fixes
2115
2116- Fixes alignment of `PageAction` links
2117
2118## 1.5.1 - 2017-08-30
2119
2120### Bug fixes
2121
2122- Fixed disabled `Button` when using local class names
2123- Fixed `Scrollable` resize listener not autobinding
2124
2125## 1.5.0 - 2017-08-30
2126
2127### Enhancements
2128
2129- Updated `Scrollable` component to remember scroll position on re-render
2130- Added checkmark icon to the `Icon` component
2131- Added an example for a disabled `TextField`
2132
2133### Bug fixes
2134
2135- Fixed typo in `Icon` code example
2136
2137## 1.4.1 - 2017-08-24
2138
2139Various documentation fixes.
2140
2141## 1.4.0 - 2017-08-22
2142
2143### Enhancements
2144
2145- Updated import, export, and view icons
2146- Improved documentation of various components
2147- Improved how `ActionList` handles images and groups
2148- Exposed PopoverCloseSource from `Popover` component
2149
2150### Bug fixes
2151
2152- Fixed `PageActions` spacing in IE11
2153- Fixed ID inconsistency on `TextField`
2154- Fixed spacing on `Page` component with no header (thanks [@bakura10](https://github.com/bakura10) for the [original issue](https://github.com/Shopify/polaris-react/issues/160))
2155- Fixed disabled state on primary and destructive `Button`
2156
2157### Chores
2158
2159- Upgraded javascript-utilities to the latest version
2160
2161## 1.3.1 - 2017-08-10
2162
2163### Bug fixes
2164
2165- Fixed classnames in built \*.scss files
2166- Fixed broken link in description list README
2167
2168## 1.3.0 - 2017-08-09
2169
2170### Enhancements
2171
2172- Added an `esnext` build (allows production builds to perform class/method tree shaking)
2173- Changed KeyboardKey component to use `kbd` tag
2174- Added publishing `docs` folder to npm package
2175- Added `fullWidth` option to `Popover` component
2176
2177### Bug fixes
2178
2179- Updated Static HTML page examples to correct markup (thanks [@bartcoppens](https://github.com/bartcoppens) for the [original issue](https://github.com/Shopify/polaris-react/issues/159))
2180- Hide increment and decrement buttons on number input when disabled (thanks [@kguller](https://github.com/kguller) for the [original issue](https://github.com/Shopify/polaris-react/issues/163))
2181- Fixed link to product content documentation
2182- Fixed documented type for error prop on `Checkbox` component
2183- Fixed `Popover` reopening when clicking around during transition
2184- Fixed `Popover` resizing on content updates
2185- Fixed vertical alignment of `Button` content
2186
2187### Sketch UIKit
2188
2189- Added Sketch color palette file
2190
2191## 1.2.1 (July 27, 2017)
2192
2193### Chores
2194
2195- Fixed a repo issue that caused the public repo release not to happen
2196
2197## 1.2.0 (July 27, 2017)
2198
2199### Enhancements
2200
2201- Added helpText to `ChoiceList` choices (thanks [@cgenevier](https://github.com/cgenevier) for the [original issue](https://github.com/Shopify/polaris-react/issues/103))
2202- Added save icon
2203- Added `accessibilityLabel` to `Tabs`
2204- Updated icons for `Banner`
2205- Improved `Page` component by fixing up spacing, addin a prop to show a separator below the page title, and changing the secondary actions to roll up into a dropdown menu on small screens
2206- Improved default stacking behavior for Tooltip and `Popover` (thanks [@Taphood](https://github.com/Taphood) for the [original issue](https://github.com/Shopify/polaris-react/issues/129))
2207- Added extraTight spacing option to Stack
2208- Use default subheading type styles for `ActionList`
2209- Improved large `Button` styles
2210- Updated font-weight for text emphasis (thanks [@bakura10](https://github.com/bakura10) for the [original issue](https://github.com/Shopify/polaris-react/issues/156))
2211
2212### Bug fixes
2213
2214- Removed the focus state for `Banner` on click
2215- Fixed disabled `Pagination` button looking active
2216- Fixed alignment on `Button`
2217- Fixed min-width on `TextField` (thanks [@asacarter](https://github.com/asacarter) for the [original issue](https://github.com/Shopify/polaris-react/issues/96))
2218- Removed the border-top on `EmptyState`) (thanks [@alexdover](https://github.com/alexdover) for the [original issue](https://github.com/Shopify/polaris-react/issues/102)
2219- Fixed `Select` placeholder value warnings (thanks [@cgenevier](https://github.com/cgenevier) for the [original issue](https://github.com/Shopify/polaris-react/issues/98))
2220- Fixed disabled text on iOS
2221- Fixed type for `onChange` event (thanks [@bakura10](https://github.com/bakura10) for the [original issue](https://github.com/Shopify/polaris-react/issues/135))
2222
2223### Sketch UIKit
2224
2225- Added color palette page to “Getting started”
2226- `Button` typography updated. More changes to come soon.
2227- Changed typeface from `San Francisco UI` to `San Francisco Pro`. You will need to download the updated typeface here. https://developer.apple.com/fonts/
2228- Updated to Sketch version 45.2
2229- Updated layer styles and fonts styles to take advantage of Sketch’s new organizational features.
2230
2231### Documentation
2232
2233- Fixed disabled `Button` documentation (thanks [@michaelsunglee](https://github.com/michaelsunglee) for the [original issue](https://github.com/Shopify/polaris-react/issues/113))
2234- Fixed project URL in CircleCI badge
2235- Fixed Stack documentation (thanks [@nerfologist](https://github.com/nerfologist) for the [original issue](https://github.com/Shopify/polaris-react/issues/120))
2236- Added embedded Alert documentation and updated other embedded documentation
2237
2238### Dependency updates
2239
2240- Updated React TypeScript definitions
2241
2242### Chores
2243
2244- Updated EASDK metadata structure for generic interfaces
2245- Removed postinstall hook
2246
2247## 1.1.1 - 2017-06-19
2248
2249### Chores
2250
2251- Fixed a repo issue that caused the public repo release not to happen
2252
2253## 1.1.0 - 2017-06-19
2254
2255### Enhancements
2256
2257- Added automatic inference of the `target` property of EASDK buttons in `Page` `primaryAction` and `secondaryAction` based on their URL (thanks [@jimmyn](https://github.com/jimmyn) for the [original issue](https://github.com/Shopify/polaris-react/issues/46))
2258- Added automatic inference of the `target` property of EASDK breadcrumbs in `Page` `breadcrumbs` prop based on the URL
2259- `Select` option descriptors now accept a `disabled` attribute to disable the generated `option` (thanks [@sogko](https://github.com/sogko) for the [original issue](https://github.com/Shopify/polaris-react/issues/68))
2260- `easdk.showFlashNotice` now accepts an optional options object as its second parameter. Passing `{error: true}` will cause the flash to appear as an error, matching the behaviour of [`ShopifyApp.flashError`](https://help.shopify.com/api/sdks/shopify-apps/embedded-app-sdk/methods#shopifyapp-flasherror-message)
2261- `Checkbox`, `RadioButton`, `ChoiceList`, `Select`, and `TextField` now pass the ID of the changed input as the second argument to their `onChange` callback (thanks [@milep](https://github.com/milep) for the [original issue](https://github.com/Shopify/polaris-react/issues/83))
2262- `Popover` now respects the `z-index` of the activator if it exists
2263- When putting content as children of `Tabs`, the default panel that is generated now respects the `panelID` of the selected tab, and uses a sensible default based on the tab’s `id` if no `panelID` exists
2264- When selecting a tab in `Tabs`, the matching panel is now focused by default
2265- `easdk` methods are bound to the object so they can be freely passed as callbacks
2266
2267### Changes
2268
2269- `Avatar` now renders as a `span` instead of a `div`
2270
2271### Bug fixes
2272
2273- Fixed contents in `Layout.AnnotatedSection` breaking out of their container (thanks [@cargix1](https://github.com/cargix1) for the [original issue](https://github.com/Shopify/polaris-react/issues/75))
2274- Fixed spacing above a `primaryAction` in `CalloutCard` when there is no `secondaryAction`
2275- Aria attributes are now on the actionable elements of `Tabs` instead of in the list items
2276- Exposed `Panel` as `Tabs.Panel` instead of `Tabs.panel`
2277- Fixed the alignment of `prefix` and `suffix` content of `TextField` (thanks [@bdillon3](https://github.com/bdillon3) for the [original issue](https://github.com/Shopify/polaris-react/issues/60))
2278- Fixed the disabled text color in `TextField`
2279- `Checkbox` and `RadioButton` no longer generate invalid HTML in their labels (thanks [@ernestogutierrez](https://github.com/ernestogutierrez) for the [original issue](https://github.com/Shopify/polaris-react/issues/88))
2280- `Tabs` no longer steal focus from contained elements (thanks [@alexdover](https://github.com/alexdover) for the [original issue](https://github.com/Shopify/polaris-react/issues/74))
2281
2282### Design updates
2283
2284- Reduced horizontal padding on `Breadcrumbs`
2285- Updated icon and internal padding of `FooterHelp`
2286- Updated the `EmptyState` layout and typographic styles
2287
2288### Documentation
2289
2290- Fixed the code examples on the `EmbeddedApp` documentation
2291- Added a simple `EmbeddedApp` example
2292- Renamed the “Tables and lists” category to “Lists”
2293- A variety of other documentation updates (thanks [@sebnun](https://github.com/sebnun), [@asacarter](https://github.com/asacarter), and [@resistorsoftware](https://github.com/resistorsoftware) for raising issues)
2294
2295### Dependency updates
2296
2297- Updated all dependencies
2298
2299### Chores
2300
2301- Added a script to automatically match the published version number to the one referenced in the README
2302- Added the correct viewport tag to the Playground
2303- Hid deprecation errors during tests
2304
2305## 1.0.3 - 2017-05-11
2306
2307### Big fixes
2308
2309- Fixed an issue where the embedded components would not reload the page within the Shopify admin (thanks [@buggy](https://github.com/buggy) for the [original issue](https://github.com/Shopify/polaris-react/issues/28))
2310- Fixed the `spacing="none"` variation on `Stack` not working correctly, and added the missing `extraLarge` enum value for `spacing`
2311- Fixed `Banner`’s `onDismiss` callback not being called when the dismiss button was clicked ([76ce13f](https://github.com/Shopify/polaris-react/commit/76ce13f328c2446c316f3d7f1f2a3f007658b6f7)) (thanks [@tlwirtz](https://github.com/tlwirtz) for the [original issue](https://github.com/Shopify/polaris-react/issues/52))
2312
2313### Design updates
2314
2315- Updated `Badge` text colors
2316- Updated line height for the small `DisplayText` variation
2317- Updated the default icon for error `Banner` (thanks [@heyneff](https://github.com/heyneff) for the [original issue](https://github.com/Shopify/polaris-react/issues/42))
2318
2319### Sketch UIKit
2320
2321- Added app examples (thanks [@lukepxu](https://github.com/lukepxu) for the [original issue](https://github.com/Shopify/polaris-react/issues/17))
2322- Removed references to the Graphik typeface (thanks [@adamnel](https://github.com/adamnel) for the [original issue](https://github.com/Shopify/polaris-react/issues/22))
2323- Left-aligned button text for better resizing
2324- Added Messenger link to navigation to better communicate that the channel nav collapses after 3 items
2325- Fixed alignment of table headers
2326- Minor updates to Dataviz and Reports examples
2327- Added indicators to Home notifications
2328
2329### Documentation
2330
2331- Synchronized component documentation with the style guide ([1e89559](https://github.com/Shopify/polaris-react/commit/1e895594afedb63787e6c05a167f5146901e88e6))
2332
2333### Chores
2334
2335- Fixed an issue that prevented the public CHANGELOG from being generated correctly
2336- Added a hot-reloading Playground to easily try out different components
2337- Removed the references to Babel presets from `package.json` (thanks [@macs91](https://github.com/macs91) for digging into this with us)
2338- Removed the `@import` statements at the top of source Sass files
2339- Updated TSLint and related linting dependencies
2340
2341## 1.0.2 - 2017-04-25
2342
2343### Bug fixes
2344
2345- Fixed an issue where subcomponents with variations would use a single `-` instead of `--` (thanks [@johnsonab](https://github.com/johnsonab) for the [original issue](https://github.com/Shopify/polaris-react/issues/9))
2346- Fixed a missing typing dependency and a missing `embedded` types entry point that were causing issues using this package with TypeScript (thanks [@buggy](https://github.com/buggy) for the [original](https://github.com/Shopify/polaris-react/issues/19) [issues](https://github.com/Shopify/polaris-react/issues/20))
2347- Fixed an issue where the anchor tag for `ResourceList.Item` would not span the full width of the item ([0c11498](https://github.com/Shopify/polaris-react/commit/0c11498406d90850f569824d0979c9a8f84d45c9)) (thanks [@sdn90](https://github.com/sdn90) for the [original issue](https://github.com/Shopify/polaris-react/issues/14))
2348
2349### Dependency updates
2350
2351- Started using the [`prop-types` package](https://github.com/reactjs/prop-types) instead of getting `PropTypes` from `react`, as the latter is deprecated as of React 15.5.0
2352
2353### Documentation
2354
2355- Corrected the name of `documentation/Embeddded apps.md` to `documentation/Embedded apps.md` (thanks [@chrispappas](https://github.com/chrispappas) for the [original issue](https://github.com/Shopify/polaris-react/issues/10))
2356- Fixed the `ColorPicker` documentation to show valid values for `saturation`, `brightness`, and `alpha` (thanks [@allanarmstrong](https://github.com/allanarmstrong) for the [original issue](https://github.com/Shopify/polaris-react/issues/13))
2357
2358### Chores
2359
2360- Added a description to `package.json`
2361- Added license to `package.json` and to the root of the repo (thanks [@d2s](https://github.com/d2s) for the [original issue](https://github.com/Shopify/polaris-react/issues/15))
2362- Fixed an issue where the Webpack example would complain about a missing dependency (thanks [@rafaedez](https://github.com/rafaedez) for the [original issue](https://github.com/Shopify/polaris-react/issues/21))
2363
2364## 1.0.1 - 2017-04-20
2365
2366### Chores
2367
2368- Switch repo to public access
2369
2370## 1.0.0 - 2017-04-20
2371
2372- Initial release