diff --git a/MIGRATING.md b/MIGRATING.md index 761fdb726..eba477383 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -1,5 +1,14 @@ # Migration Guides +## v0.14 + +- `@theme-ui/components` and other Theme UI packagss no longe depends on + `@emotion/styled`. + +- Previously deprecated `.withComponent` API was removed. + +- `as` prop was removed from Themed.X components from `@theme-ui/mdx`. + ## v0.13 **Moved Emotion and `@mdx-js/react` to peerDependencies to solve context diff --git a/packages/components/src/Close.tsx b/packages/components/src/Close.tsx index 07a4732eb..c8f551279 100644 --- a/packages/components/src/Close.tsx +++ b/packages/components/src/Close.tsx @@ -8,7 +8,7 @@ export const CloseIcon = ( xmlns="http://www.w3.org/2000/svg" width="24" height="24" - fill="currentcolor" + fill="currentolor" viewBox="0 0 24 24" > diff --git a/packages/components/src/MenuButton.tsx b/packages/components/src/MenuButton.tsx index d83c82a71..dd126773d 100644 --- a/packages/components/src/MenuButton.tsx +++ b/packages/components/src/MenuButton.tsx @@ -13,7 +13,13 @@ export const MenuIcon = ({ size = 24 }) => { width={size} height={size} fill="currentColor" - css={{ display: 'block', margin: 0 }}> + css={{ + display: 'block', + margin: 0, + boxSizing: 'border-box', + minWidth: 0, + }} + > ) @@ -34,7 +40,8 @@ export const MenuButton: ForwardRef = title="Menu" aria-label="Toggle Menu" variant="menu" - {...props}> + {...props} + > ) diff --git a/packages/components/test/__snapshots__/Button.spec.tsx.snap b/packages/components/test/__snapshots__/Button.spec.tsx.snap new file mode 100644 index 000000000..541e08af9 --- /dev/null +++ b/packages/components/test/__snapshots__/Button.spec.tsx.snap @@ -0,0 +1,65 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Button hidden 1`] = ` +.emotion-0 { + box-sizing: border-box; + margin: 0; + min-width: 0; + -webkit-appearance: none; + -moz-appearance: none; + -ms-appearance: none; + appearance: none; + text-align: center; + line-height: inherit; + -webkit-text-decoration: none; + text-decoration: none; + font-size: inherit; + padding-left: 16px; + padding-right: 16px; + padding-top: 8px; + padding-bottom: 8px; + color: white; + background-color: primary; + border: 0; + border-radius: 4px; + color: background; + background-color: primary; +} + +