@comicrelief/component-library 8.18.0 → 8.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ const StyledLink = _styledComponents.default.a.withConfig({
20
20
  let {
21
21
  isHeader
22
22
  } = _ref;
23
- return isHeader && (0, _styledComponents.css)(["overflow:hidden;padding-right:0px;transition:padding-right ", "s cubic-bezier(0.5,1.5,0.5,0.75);&:hover,&:focus{opacity:1;}@media ", "{&:hover,&:focus{img{filter:invert(0.5) sepia(1) saturate(100) hue-rotate(20deg);}}}@media ", "{&:hover,&:focus{padding-right:", "px;&[data-testid=\"header-esu\"]{padding-right:92px;}&[data-testid=\"header-shop\"]{padding-right:48px;}img + span{display:block;}}"], RevealTextSpeed, _ref2 => {
23
+ return isHeader && (0, _styledComponents.css)(["overflow:hidden;padding-right:0px;transition:padding-right ", "s cubic-bezier(0.5,1.5,0.5,0.75);&:hover,&:focus{opacity:1;}@media ", "{&:hover,&:focus{img{filter:invert(0.5) sepia(1) saturate(100) hue-rotate(20deg);}}}@media ", "{&:hover,&:focus{padding-right:", "px;&[data-test=\"header-esu\"]{padding-right:92px;}&[data-test=\"header-shop\"]{padding-right:48px;}img + span{display:block;}}"], RevealTextSpeed, _ref2 => {
24
24
  let {
25
25
  theme
26
26
  } = _ref2;
@@ -47,7 +47,7 @@ const MoreNavLabel = exports.MoreNavLabel = (0, _styledComponents.default)(_Text
47
47
  const MoreNavItem = exports.MoreNavItem = (0, _styledComponents.default)(_HeaderNav.NavItem).withConfig({
48
48
  displayName: "MoreNavstyle__MoreNavItem",
49
49
  componentId: "sc-68lngb-2"
50
- })(["@media ", "{margin-left:22px;display:flex;flex-grow:0.5;", " > ", "{transition:transform 0.35s cubic-bezier(0.41,1.64,0.41,0.8);}:hover,:focus{", "{color:", ";> ", "{transform:rotate(-180deg);img{filter:invert(0.5) sepia(1) saturate(100) hue-rotate(20deg);}}}}:hover,:focus,:focus-within{> ", "{border-bottom:none;padding-bottom:10px;}> ", "{visibility:visible;opacity:1;display:flex;flex-direction:column;}}:focus{> ", "{visibility:hidden !important;opacity:0 !important;display:none !important;}}}@media ", "{margin-left:20px;}"], _ref6 => {
50
+ })(["@media ", "{margin-left:22px;display:flex;flex-grow:1;", " > ", "{transition:transform 0.35s cubic-bezier(0.41,1.64,0.41,0.8);}:hover,:focus{", "{color:", ";> ", "{transform:rotate(-180deg);img{filter:invert(0.5) sepia(1) saturate(100) hue-rotate(20deg);}}}}:hover,:focus,:focus-within{> ", "{border-bottom:none;padding-bottom:10px;}> ", "{visibility:visible;opacity:1;display:flex;flex-direction:column;}}:focus{> ", "{visibility:hidden !important;opacity:0 !important;display:none !important;}}}@media ", "{margin-left:20px;}"], _ref6 => {
51
51
  let {
52
52
  theme
53
53
  } = _ref6;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.18.0",
4
+ "version": "8.18.1",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -48,12 +48,12 @@ const StyledLink = styled.a`
48
48
  padding-right: ${RevealTextWidth}px;
49
49
 
50
50
  // Tweak for ESU's longer text:
51
- &[data-testid="header-esu"] {
51
+ &[data-test="header-esu"] {
52
52
  padding-right: 92px;
53
53
  }
54
54
 
55
55
  // Tweak for Shop's shorter text:
56
- &[data-testid="header-shop"] {
56
+ &[data-test="header-shop"] {
57
57
  padding-right: 48px;
58
58
  }
59
59
 
@@ -59,7 +59,7 @@ const MoreNavItem = styled(NavItem)`
59
59
  margin-left: 22px;
60
60
  // Let it take up all the space to be a bigger target:
61
61
  display: flex;
62
- flex-grow: 0.5;
62
+ flex-grow: 1;
63
63
 
64
64
  // Chevron icon:
65
65
  ${MoreNavLabel} > ${ChevronWrapper} {