@trebired/frontend 13.28.0 → 13.29.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 13.29.0
4
+
5
+ - 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.
6
+ - 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.
7
+ - `transparent` is split the same way, and its bar and menu are explicitly cleared rather than relying on the root.
8
+
3
9
  ## 13.28.0
4
10
 
5
11
  - `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.
@@ -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", "transparent")} #{ns.element-class("site-header", "menu")} {
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", "blurred")},
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-color: token(
291
- "surface-border-color",
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
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "name": "@trebired/frontend",
11
- "version": "13.28.0",
11
+ "version": "13.29.0",
12
12
  "description": "Generic browser runtime systems for Trebired frontend packages and applications.",
13
13
  "type": "module",
14
14
  "private": false,