@comicrelief/component-library 8.84.0 → 8.84.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.
package/dist/index.cjs.js
CHANGED
|
@@ -657,8 +657,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
657
657
|
// New style is rounded square buttons with dark grey background, and animation.
|
|
658
658
|
// When we've moved fully to the new design,
|
|
659
659
|
// this prop and the old styles can be removed.
|
|
660
|
-
${({$newStyle:e})=>e&&g.css`
|
|
661
|
-
background-color: ${
|
|
660
|
+
${({$newStyle:e,theme:t})=>e&&g.css`
|
|
661
|
+
background-color: ${t.color("grey_4")};
|
|
662
662
|
border-radius: 0.5rem;
|
|
663
663
|
padding: 0.5rem;
|
|
664
664
|
box-sizing: border-box;
|
|
@@ -672,7 +672,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
672
672
|
|
|
673
673
|
&:hover,
|
|
674
674
|
&:focus {
|
|
675
|
-
background-color: ${
|
|
675
|
+
background-color: ${t.color("grey_4_hover")};
|
|
676
676
|
opacity: 1;
|
|
677
677
|
}
|
|
678
678
|
`}
|
package/dist/index.es.js
CHANGED
|
@@ -7070,8 +7070,8 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
|
|
|
7070
7070
|
// New style is rounded square buttons with dark grey background, and animation.
|
|
7071
7071
|
// When we've moved fully to the new design,
|
|
7072
7072
|
// this prop and the old styles can be removed.
|
|
7073
|
-
${({ $newStyle: e }) => e && X`
|
|
7074
|
-
background-color: ${
|
|
7073
|
+
${({ $newStyle: e, theme: t }) => e && X`
|
|
7074
|
+
background-color: ${t.color("grey_4")};
|
|
7075
7075
|
border-radius: 0.5rem;
|
|
7076
7076
|
padding: 0.5rem;
|
|
7077
7077
|
box-sizing: border-box;
|
|
@@ -7085,7 +7085,7 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
|
|
|
7085
7085
|
|
|
7086
7086
|
&:hover,
|
|
7087
7087
|
&:focus {
|
|
7088
|
-
background-color: ${
|
|
7088
|
+
background-color: ${t.color("grey_4_hover")};
|
|
7089
7089
|
opacity: 1;
|
|
7090
7090
|
}
|
|
7091
7091
|
`}
|
package/package.json
CHANGED
|
@@ -69,8 +69,8 @@ const StyledLink = styled.a`
|
|
|
69
69
|
// New style is rounded square buttons with dark grey background, and animation.
|
|
70
70
|
// When we've moved fully to the new design,
|
|
71
71
|
// this prop and the old styles can be removed.
|
|
72
|
-
${({ $newStyle }) => $newStyle && css`
|
|
73
|
-
background-color: ${
|
|
72
|
+
${({ $newStyle, theme }) => $newStyle && css`
|
|
73
|
+
background-color: ${theme.color('grey_4')};
|
|
74
74
|
border-radius: 0.5rem;
|
|
75
75
|
padding: 0.5rem;
|
|
76
76
|
box-sizing: border-box;
|
|
@@ -84,7 +84,7 @@ const StyledLink = styled.a`
|
|
|
84
84
|
|
|
85
85
|
&:hover,
|
|
86
86
|
&:focus {
|
|
87
|
-
background-color: ${
|
|
87
|
+
background-color: ${theme.color('grey_4_hover')};
|
|
88
88
|
opacity: 1;
|
|
89
89
|
}
|
|
90
90
|
`}
|