@guardian/stand 0.0.52 → 0.0.53
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/components/TopBar/TopBarNavigation/TopBarNavigation.cjs +2 -2
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.js +2 -2
- package/dist/components/TopBar/TopBarNavigation/styles.cjs +2 -2
- package/dist/components/TopBar/TopBarNavigation/styles.js +2 -2
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ function TopBarNavigation({ text, size = "md", isSelected = false, icon, menuChi
|
|
|
32
32
|
children: icon
|
|
33
33
|
}),
|
|
34
34
|
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
35
|
-
css: require_styles.topBarNavigationTextStyles(mergedTheme),
|
|
35
|
+
css: require_styles.topBarNavigationTextStyles(mergedTheme, { hasIcon: !!icon }),
|
|
36
36
|
children: text
|
|
37
37
|
}),
|
|
38
38
|
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("div", {
|
|
@@ -60,7 +60,7 @@ function TopBarNavigation({ text, size = "md", isSelected = false, icon, menuChi
|
|
|
60
60
|
size: iconSize,
|
|
61
61
|
children: icon
|
|
62
62
|
}), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
63
|
-
css: require_styles.topBarNavigationTextStyles(mergedTheme),
|
|
63
|
+
css: require_styles.topBarNavigationTextStyles(mergedTheme, { hasIcon: !!icon }),
|
|
64
64
|
children: text
|
|
65
65
|
})]
|
|
66
66
|
})
|
|
@@ -32,7 +32,7 @@ function TopBarNavigation({ text, size = "md", isSelected = false, icon, menuChi
|
|
|
32
32
|
children: icon
|
|
33
33
|
}),
|
|
34
34
|
/* @__PURE__ */ jsx("span", {
|
|
35
|
-
css: topBarNavigationTextStyles(mergedTheme),
|
|
35
|
+
css: topBarNavigationTextStyles(mergedTheme, { hasIcon: !!icon }),
|
|
36
36
|
children: text
|
|
37
37
|
}),
|
|
38
38
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -60,7 +60,7 @@ function TopBarNavigation({ text, size = "md", isSelected = false, icon, menuChi
|
|
|
60
60
|
size: iconSize,
|
|
61
61
|
children: icon
|
|
62
62
|
}), /* @__PURE__ */ jsx("span", {
|
|
63
|
-
css: topBarNavigationTextStyles(mergedTheme),
|
|
63
|
+
css: topBarNavigationTextStyles(mergedTheme, { hasIcon: !!icon }),
|
|
64
64
|
children: text
|
|
65
65
|
})]
|
|
66
66
|
})
|
|
@@ -78,8 +78,8 @@ const topBarNavigationDividerStyles = (theme, { alignment }, _menuOpen) => _emot
|
|
|
78
78
|
${alignment === "left" ? "border-right" : "border-left"}: ${theme.shared.divider};
|
|
79
79
|
`}
|
|
80
80
|
`;
|
|
81
|
-
const topBarNavigationTextStyles = (theme) => _emotion_react.css`
|
|
82
|
-
margin-left: ${theme.text.margin.left}
|
|
81
|
+
const topBarNavigationTextStyles = (theme, { hasIcon }) => _emotion_react.css`
|
|
82
|
+
${hasIcon && `margin-left: ${theme.text.margin.left};`}
|
|
83
83
|
`;
|
|
84
84
|
const topBarNavigationTypographyStyles = (theme, size) => {
|
|
85
85
|
return size == "md" ? _emotion_react.css`
|
|
@@ -78,8 +78,8 @@ const topBarNavigationDividerStyles = (theme, { alignment }, _menuOpen) => css`
|
|
|
78
78
|
${alignment === "left" ? "border-right" : "border-left"}: ${theme.shared.divider};
|
|
79
79
|
`}
|
|
80
80
|
`;
|
|
81
|
-
const topBarNavigationTextStyles = (theme) => css`
|
|
82
|
-
margin-left: ${theme.text.margin.left}
|
|
81
|
+
const topBarNavigationTextStyles = (theme, { hasIcon }) => css`
|
|
82
|
+
${hasIcon && `margin-left: ${theme.text.margin.left};`}
|
|
83
83
|
`;
|
|
84
84
|
const topBarNavigationTypographyStyles = (theme, size) => {
|
|
85
85
|
return size == "md" ? css`
|