@hubpav/hwio-ui 0.7.1 → 0.7.3
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/package.json +5 -5
- package/src/styles/styles.css +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubpav/hwio-ui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "HARDWARIO web design system for Astro: DaisyUI 5 themes generated from the brand tokens, the Tailwind entry stylesheet and the HWio* components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"build": "node scripts/build-themes.mjs"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@hubpav/hwio-brand": "0.7.
|
|
35
|
-
"@hubpav/hwio-web-runtime": "0.7.
|
|
36
|
-
"@hubpav/hwio-web-worker": "0.7.
|
|
37
|
-
"daisyui": "5.7.
|
|
34
|
+
"@hubpav/hwio-brand": "0.7.3",
|
|
35
|
+
"@hubpav/hwio-web-runtime": "0.7.3",
|
|
36
|
+
"@hubpav/hwio-web-worker": "0.7.3",
|
|
37
|
+
"daisyui": "5.7.47"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"astro": "^7.0.0",
|
package/src/styles/styles.css
CHANGED
|
@@ -256,3 +256,19 @@
|
|
|
256
256
|
outline: 2px solid var(--color-secondary);
|
|
257
257
|
outline-offset: 2px;
|
|
258
258
|
}
|
|
259
|
+
/* DaisyUI 5.7.30+ paints a menu link carrying aria-current like .menu-active (the neutral fill). The
|
|
260
|
+
header marks the current page with its own label colour and bar (.hwio-nav-current) and the drawer
|
|
261
|
+
lists it as a plain row, so those links keep the ground; .menu-active items (the language dropdown)
|
|
262
|
+
keep DaisyUI's fill. currentColor as `color` inherits, so the nav's own colour utilities still win. */
|
|
263
|
+
.menu :where(li) > [aria-current]:not([aria-current='false'], [aria-current=''], .menu-active, .btn) {
|
|
264
|
+
--menu-active-bg: transparent;
|
|
265
|
+
--menu-active-fg: currentColor;
|
|
266
|
+
}
|
|
267
|
+
/* DaisyUI 5.7.30+ also gives pressed buttons (aria-pressed / aria-checked) a filled ground. A ghost
|
|
268
|
+
toggle shows its state in its own content (HWioThemeToggle swaps moon and sun and sets
|
|
269
|
+
aria-pressed="true" in dark mode), so it keeps the transparent ground at rest; hover and focus
|
|
270
|
+
still tint it as before. */
|
|
271
|
+
.btn-ghost:is([aria-pressed='true'], [aria-checked='true']):not(:hover, :focus-visible, .btn-active) {
|
|
272
|
+
--btn-bg: #0000;
|
|
273
|
+
--btn-border: #0000;
|
|
274
|
+
}
|