uikit-react-public 0.36.0 → 0.36.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.js
CHANGED
|
@@ -17390,7 +17390,7 @@ const {
|
|
|
17390
17390
|
html,
|
|
17391
17391
|
body,
|
|
17392
17392
|
#root {
|
|
17393
|
-
background-color: ${e.colour.bg.
|
|
17393
|
+
background-color: ${e.colour.bg.default};
|
|
17394
17394
|
color: ${e.colour.text.default};
|
|
17395
17395
|
}
|
|
17396
17396
|
`, Ex = ({ children: e, theme: t, initialTheme: o }) => {
|
|
@@ -20442,7 +20442,7 @@ const Rv = (e, t) => {
|
|
|
20442
20442
|
flex-shrink: 0;
|
|
20443
20443
|
`, z = u`
|
|
20444
20444
|
&:hover {
|
|
20445
|
-
color: ${h.colour.icon.
|
|
20445
|
+
color: ${h.colour.icon.brandInverseSecondaryHover};
|
|
20446
20446
|
}
|
|
20447
20447
|
`, N = u`
|
|
20448
20448
|
padding: ${h.padding.p4};
|
|
@@ -20452,7 +20452,7 @@ const Rv = (e, t) => {
|
|
|
20452
20452
|
cursor: pointer;
|
|
20453
20453
|
|
|
20454
20454
|
&:hover {
|
|
20455
|
-
color: ${h.colour.icon.
|
|
20455
|
+
color: ${h.colour.icon.brandInverseSecondaryHover};
|
|
20456
20456
|
}
|
|
20457
20457
|
|
|
20458
20458
|
&:focus-visible {
|
|
@@ -40,7 +40,6 @@ const Snackbar = ({
|
|
|
40
40
|
error: Icon.AlertTriangle,
|
|
41
41
|
success: Icon.CheckCircle,
|
|
42
42
|
}[variant];
|
|
43
|
-
// Success token currently differs from Figma (#008E49).
|
|
44
43
|
const backgroundColor = {
|
|
45
44
|
default: theme.colour.fill.brandPrimary,
|
|
46
45
|
error: theme.colour.fill.critical,
|
|
@@ -90,7 +89,7 @@ const Snackbar = ({
|
|
|
90
89
|
|
|
91
90
|
const closeButtonStyle = css`
|
|
92
91
|
&:hover {
|
|
93
|
-
color: ${theme.colour.icon.
|
|
92
|
+
color: ${theme.colour.icon.brandInverseSecondaryHover};
|
|
94
93
|
}
|
|
95
94
|
`;
|
|
96
95
|
|
|
@@ -102,7 +101,7 @@ const Snackbar = ({
|
|
|
102
101
|
cursor: pointer;
|
|
103
102
|
|
|
104
103
|
&:hover {
|
|
105
|
-
color: ${theme.colour.icon.
|
|
104
|
+
color: ${theme.colour.icon.brandInverseSecondaryHover};
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
&:focus-visible {
|
|
@@ -40,7 +40,7 @@ exports[`Snackbar > snapshot: custom test id 1`] = `
|
|
|
40
40
|
class="css-1xjm0bq"
|
|
41
41
|
>
|
|
42
42
|
<button
|
|
43
|
-
class="css-
|
|
43
|
+
class="css-1omltr1"
|
|
44
44
|
data-testid="custom-test-id-undo-button"
|
|
45
45
|
>
|
|
46
46
|
<span
|
|
@@ -95,7 +95,7 @@ exports[`Snackbar > snapshot: minimal props 1`] = `
|
|
|
95
95
|
>
|
|
96
96
|
<button
|
|
97
97
|
aria-label="Dismiss notification"
|
|
98
|
-
class="ucl-uikit-icon-button css-
|
|
98
|
+
class="ucl-uikit-icon-button css-1s0isp9"
|
|
99
99
|
data-testid="ucl-uikit-snackbar-close-button"
|
|
100
100
|
>
|
|
101
101
|
<svg
|
|
@@ -100,14 +100,14 @@ describe('useTheme', () => {
|
|
|
100
100
|
);
|
|
101
101
|
|
|
102
102
|
expect(document.body).toHaveStyle({
|
|
103
|
-
backgroundColor: lightTheme.colour.bg.
|
|
103
|
+
backgroundColor: lightTheme.colour.bg.default,
|
|
104
104
|
color: lightTheme.colour.text.default,
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
fireEvent.click(screen.getByTestId('set-dark'));
|
|
108
108
|
|
|
109
109
|
expect(document.body).toHaveStyle({
|
|
110
|
-
backgroundColor: darkTheme.colour.bg.
|
|
110
|
+
backgroundColor: darkTheme.colour.bg.default,
|
|
111
111
|
color: darkTheme.colour.text.default,
|
|
112
112
|
});
|
|
113
113
|
});
|
package/lib/theme/useTheme.tsx
CHANGED