@trebired/frontend 20.12.0 → 20.13.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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 20.13.0
4
+
5
+ - The brand button keeps its own colour instead of the one every button gets. Both rules carried the same weight and the general one is written later, so it won, and the brand took the colour flowing down from the header: on a light page the little arrow beside the logo came out almost white and read as having disappeared. Its colour now outranks the general rule, as its background already did.
6
+
3
7
  ## 20.12.0
4
8
 
5
9
  - The brand button takes the colour of the surface it is on rather than the colour it inherits. It was built from the text colour flowing down from the header, so a brand that had been worked out to sit on light content still printed itself in the header's dark-content colour: on a light page the little arrow beside the logo came out almost white and read as having disappeared. It now follows its own state, like the links and the toggle beside it.
@@ -318,20 +318,31 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
318
318
  border: 0;
319
319
  border-radius: var(#{ns.css-var("shell-header-brand-button-radius")}, var(#{ns.css-var("radius-sm")}, 0));
320
320
  padding: var(#{ns.css-var("shell-header-brand-button-padding")}, 4px 6px);
321
+ background: transparent;
322
+ cursor: pointer;
323
+ transition: color 0.22s ease;
324
+ }
325
+
326
+ #{ns.class("site-header-brand-button")},
327
+
328
+ #{ns.class("button")}#{ns.class("site-header-brand-button")} {
321
329
  color: var(
322
330
  #{ns.css-var("shell-header-brand-button-color")},
323
331
  color-mix(in srgb, var(#{ns.css-var("text")}, currentColor) 74%, transparent)
324
332
  );
325
- background: transparent;
326
- cursor: pointer;
327
- transition: color 0.22s ease;
328
333
  }
329
334
 
330
335
  #{ns.class("site-header-brand-button")}:hover,
331
336
 
332
337
  #{ns.class("site-header-brand-button")}:focus-visible,
333
338
 
334
- #{ns.class("site-header-brand-button")}[aria-expanded="true"] {
339
+ #{ns.class("site-header-brand-button")}[aria-expanded="true"],
340
+
341
+ #{ns.class("button")}#{ns.class("site-header-brand-button")}:hover,
342
+
343
+ #{ns.class("button")}#{ns.class("site-header-brand-button")}:focus-visible,
344
+
345
+ #{ns.class("button")}#{ns.class("site-header-brand-button")}[aria-expanded="true"] {
335
346
  color: var(#{ns.css-var("shell-header-brand-button-hover-color")}, var(#{ns.css-var("text")}, currentColor));
336
347
  }
337
348
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "name": "@trebired/frontend",
11
- "version": "20.12.0",
11
+ "version": "20.13.0",
12
12
  "description": "Generic browser runtime systems for Trebired frontend packages and applications.",
13
13
  "type": "module",
14
14
  "private": false,