@trebired/frontend 13.28.0 → 13.30.0
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/CHANGELOG.md +10 -0
- package/dist/layout/styles/site-header.scss +16 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 13.30.0
|
|
4
|
+
|
|
5
|
+
- The site header's menu toggle pulls itself toward the container edge with a negative margin for optical alignment. That is now the `--tbf-shell-header-toggle-offset` token instead of a hard-coded value, so a site whose own rules forbid margins can set it to `0` from config rather than writing an override it is not allowed to write.
|
|
6
|
+
|
|
7
|
+
## 13.29.0
|
|
8
|
+
|
|
9
|
+
- Fixed the `blurred` header surface: the mobile menu was not blurring anything. The preset put `backdrop-filter` on the header root and again on the menu, but an element with a `backdrop-filter` becomes a backdrop root for its descendants, so the menu's own filter sampled an empty backdrop and did nothing. The page showed through the open menu unblurred and the links were unreadable over busy content.
|
|
10
|
+
- The surface now paints the bar and the menu, which are siblings, and the root carries nothing. Both get the tint, the filter and the edge, so they stay one material without one nesting inside the other's backdrop root.
|
|
11
|
+
- `transparent` is split the same way, and its bar and menu are explicitly cleared rather than relying on the root.
|
|
12
|
+
|
|
3
13
|
## 13.28.0
|
|
4
14
|
|
|
5
15
|
- `SiteHeader` accepts `brandHref={false}`. The brand slot was always wrapped in an `<a href>`, so a header whose brand opens a menu rather than navigating home had to nest a button inside a link: invalid markup, and the click bubbles to the anchor and navigates instead of opening. With `false` the same slot renders as a plain element and the content owns its own interaction.
|
|
@@ -129,7 +129,7 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
129
129
|
align-items: center;
|
|
130
130
|
justify-content: center;
|
|
131
131
|
padding: 0;
|
|
132
|
-
margin-inline-end: -0.5rem;
|
|
132
|
+
margin-inline-end: token("toggle-offset", -0.5rem);
|
|
133
133
|
border: 0;
|
|
134
134
|
border-radius: token("toggle-radius", 0.5rem);
|
|
135
135
|
color: token("toggle-color", inherit);
|
|
@@ -276,7 +276,7 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
276
276
|
|
|
277
277
|
#{ns.data("site-header-surface", "transparent")},
|
|
278
278
|
|
|
279
|
-
#{ns.data("site-header-surface", "
|
|
279
|
+
#{ns.data("site-header-surface", "blurred")} {
|
|
280
280
|
border-block-end-color: token("surface-border-color", transparent);
|
|
281
281
|
background: transparent;
|
|
282
282
|
backdrop-filter: none;
|
|
@@ -284,12 +284,22 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
284
284
|
box-shadow: none;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
#{ns.data("site-header-surface", "
|
|
287
|
+
#{ns.data("site-header-surface", "transparent")} #{ns.element-class("site-header", "bar")},
|
|
288
|
+
|
|
289
|
+
#{ns.data("site-header-surface", "transparent")} #{ns.element-class("site-header", "menu")} {
|
|
290
|
+
border-block-end-color: transparent;
|
|
291
|
+
background: transparent;
|
|
292
|
+
backdrop-filter: none;
|
|
293
|
+
-webkit-backdrop-filter: none;
|
|
294
|
+
box-shadow: none;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
#{ns.data("site-header-surface", "blurred")} #{ns.element-class("site-header", "bar")},
|
|
288
298
|
|
|
289
299
|
#{ns.data("site-header-surface", "blurred")} #{ns.element-class("site-header", "menu")} {
|
|
290
|
-
border-block-end
|
|
291
|
-
"surface-border
|
|
292
|
-
color-mix(in srgb, currentColor 12%, transparent)
|
|
300
|
+
border-block-end: token(
|
|
301
|
+
"surface-border",
|
|
302
|
+
var(#{ns.css-var("border-width")}, 1px) solid token("surface-border-color", color-mix(in srgb, currentColor 12%, transparent))
|
|
293
303
|
);
|
|
294
304
|
background: token(
|
|
295
305
|
"surface-bg",
|
package/package.json
CHANGED