diff --git a/packages/components/psammead-navigation/CHANGELOG.md b/packages/components/psammead-navigation/CHANGELOG.md index 65da264c0b..59de80be91 100644 --- a/packages/components/psammead-navigation/CHANGELOG.md +++ b/packages/components/psammead-navigation/CHANGELOG.md @@ -3,6 +3,7 @@ | Version | Description | |---------|-------------| +| 8.0.0 | [PR#3900](https://github.com/bbc/psammead/pull/3900) Migrate to Emotion. | | 7.0.3 | [PR#3883](https://github.com/bbc/psammead/pull/3883) Talos - Bump Dependencies - @bbc/psammead-assets, @bbc/psammead-styles, @bbc/psammead-visually-hidden-text | | 7.0.2 | [PR#3855](https://github.com/bbc/psammead/pull/3855) Talos - Bump Dependencies - @bbc/gel-foundations | | 7.0.1 | [PR#3854](https://github.com/bbc/psammead/pull/3854) Talos - Bump Dependencies - @bbc/psammead-styles | diff --git a/packages/components/psammead-navigation/package-lock.json b/packages/components/psammead-navigation/package-lock.json index cbd9e90753..960e44ca27 100644 --- a/packages/components/psammead-navigation/package-lock.json +++ b/packages/components/psammead-navigation/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bbc/psammead-navigation", - "version": "7.0.3", + "version": "8.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/components/psammead-navigation/package.json b/packages/components/psammead-navigation/package.json index a1b9a23cbe..3495824015 100644 --- a/packages/components/psammead-navigation/package.json +++ b/packages/components/psammead-navigation/package.json @@ -1,6 +1,6 @@ { "name": "@bbc/psammead-navigation", - "version": "7.0.3", + "version": "8.0.0", "description": "A navigation bar to use on index pages", "main": "dist/index.js", "module": "esm/index.js", @@ -26,7 +26,7 @@ }, "peerDependencies": { "react": "^16.9.0", - "styled-components": "^4.3.2", + "@emotion/styled": "^10.0.27", "prop-types": "^15.7.2" }, "keywords": [ diff --git a/packages/components/psammead-navigation/src/DropdownNavigation/__snapshots__/index.test.jsx.snap b/packages/components/psammead-navigation/src/DropdownNavigation/__snapshots__/index.test.jsx.snap index 00061ae1c7..5575b905c4 100644 --- a/packages/components/psammead-navigation/src/DropdownNavigation/__snapshots__/index.test.jsx.snap +++ b/packages/components/psammead-navigation/src/DropdownNavigation/__snapshots__/index.test.jsx.snap @@ -1,6 +1,52 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AMP Menu Button should render correctly 1`] = ` +.emotion-2 { + position: relative; + padding: 0; + margin: 0; + background-color: transparent; + border: 0; + float: left; + height: 2.75rem; + width: 2.75rem; +} + +.emotion-2:hover, +.emotion-2:focus { + cursor: pointer; + box-shadow: inset 0 0 0 0.25rem #FFFFFF; +} + +.emotion-2:hover::after, +.emotion-2:focus::after { + content: ''; + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + border: 0.25rem solid #FFFFFF; +} + +@media (min-width:37.5rem) { + .emotion-2 { + display: none; + visibility: hidden; + } +} + +@media (min-width:20rem) { + .emotion-2 { + height: 2.75rem; + width: 2.75rem; + } +} + +.emotion-2 svg { + vertical-align: middle; +} + .emotion-0 { -webkit-clip-path: inset(100%); clip-path: inset(100%); @@ -25,7 +71,7 @@ exports[`AMP Menu Button should render correctly 1`] = `