@skipleague/design 0.4.7 → 0.4.8
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/BottomNav.js +6 -1
- package/package.json +1 -1
- package/src/BottomNav.tsx +5 -1
package/dist/BottomNav.js
CHANGED
|
@@ -97,7 +97,12 @@ export function BottomNav({ tabs, action, groups }) {
|
|
|
97
97
|
const glow = activeTab?.color
|
|
98
98
|
? `0 0 22px 4px color-mix(in srgb, ${activeTab.color} 55%, transparent), 0 10px 22px color-mix(in srgb, ${activeTab.color} 30%, transparent)`
|
|
99
99
|
: ACTION_GLOW;
|
|
100
|
-
return (
|
|
100
|
+
return (
|
|
101
|
+
// `display: block` is set explicitly (not left to the nav default) so a host
|
|
102
|
+
// app's global `nav { display: grid/flex }` rule can't override it and
|
|
103
|
+
// collapse the full-width bar — the children below rely on normal block flow
|
|
104
|
+
// (the bar fills the width; the floating "+" is absolutely positioned).
|
|
105
|
+
_jsxs("nav", { style: { display: "block", position: "relative", flex: "none" }, children: [_jsxs("div", { style: {
|
|
101
106
|
background: "var(--skl-color-surface)",
|
|
102
107
|
borderTop: "1px solid var(--skl-color-border)",
|
|
103
108
|
position: "relative",
|
package/package.json
CHANGED
package/src/BottomNav.tsx
CHANGED
|
@@ -168,7 +168,11 @@ export function BottomNav({ tabs, action, groups }: BottomNavProps) {
|
|
|
168
168
|
: ACTION_GLOW;
|
|
169
169
|
|
|
170
170
|
return (
|
|
171
|
-
|
|
171
|
+
// `display: block` is set explicitly (not left to the nav default) so a host
|
|
172
|
+
// app's global `nav { display: grid/flex }` rule can't override it and
|
|
173
|
+
// collapse the full-width bar — the children below rely on normal block flow
|
|
174
|
+
// (the bar fills the width; the floating "+" is absolutely positioned).
|
|
175
|
+
<nav style={{ display: "block", position: "relative", flex: "none" }}>
|
|
172
176
|
{/* Bar — clips the glow at its top edge ("the line"). */}
|
|
173
177
|
<div
|
|
174
178
|
style={{
|