@astryxdesign/theme-y2k 0.7.3-canary.b74cf21 → 0.7.3-canary.ca48bb7

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/source.js CHANGED
@@ -122,7 +122,7 @@ var SECONDARY_COMPLEX_SELECTOR = {
122
122
  borderStyle: SECONDARY_BUTTON.borderStyle,
123
123
  borderColor: SECONDARY_BUTTON.borderColor,
124
124
  color: SECONDARY_BUTTON.color,
125
- ":hover:not(:has(> :disabled))": SECONDARY_BUTTON[":hover"]
125
+ ':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))': SECONDARY_BUTTON[":hover"]
126
126
  };
127
127
  var y2kTheme = (0, import_theme.defineTheme)({
128
128
  name: "y2k",
package/dist/source.mjs CHANGED
@@ -124,7 +124,7 @@ var SECONDARY_COMPLEX_SELECTOR = {
124
124
  borderStyle: SECONDARY_BUTTON.borderStyle,
125
125
  borderColor: SECONDARY_BUTTON.borderColor,
126
126
  color: SECONDARY_BUTTON.color,
127
- ":hover:not(:has(> :disabled))": SECONDARY_BUTTON[":hover"]
127
+ ':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))': SECONDARY_BUTTON[":hover"]
128
128
  };
129
129
  var y2kTheme = defineTheme({
130
130
  name: "y2k",
package/dist/theme.css CHANGED
@@ -472,7 +472,7 @@
472
472
  color: var(--color-text-green);
473
473
  }
474
474
 
475
- .astryx-complex-selector[data-variant="secondary"]:hover:not(:has(> :disabled)):where(:not(:disabled,[aria-disabled="true"])) {
475
+ .astryx-complex-selector[data-variant="secondary"]:hover:not(:has(> :is(:disabled, [aria-disabled="true"]))) {
476
476
  background-color: var(--color-border-green);
477
477
  }
478
478
 
package/dist/y2k.js CHANGED
@@ -384,7 +384,7 @@ export const y2kTheme = {
384
384
  "borderStyle": "solid",
385
385
  "borderColor": "var(--color-text-green)",
386
386
  "color": "var(--color-text-green)",
387
- ":hover:not(:has(> :disabled))": {
387
+ ":hover:not(:has(> :is(:disabled, [aria-disabled=\"true\"])))": {
388
388
  "backgroundColor": "var(--color-border-green)"
389
389
  }
390
390
  }
@@ -1 +1 @@
1
- {"version":3,"file":"y2kTheme.d.ts","sourceRoot":"","sources":["../src/y2kTheme.ts"],"names":[],"mappings":"AAyFA,eAAO,MAAM,QAAQ,yDAiUnB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Pd,CAAC"}
1
+ {"version":3,"file":"y2kTheme.d.ts","sourceRoot":"","sources":["../src/y2kTheme.ts"],"names":[],"mappings":"AA2FA,eAAO,MAAM,QAAQ,yDAiUnB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Pd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=y2kTheme.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"y2kTheme.test.d.ts","sourceRoot":"","sources":["../src/y2kTheme.test.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-y2k",
3
- "version": "0.7.3-canary.b74cf21",
3
+ "version": "0.7.3-canary.ca48bb7",
4
4
  "displayName": "Y2K Theme",
5
5
  "private": false,
6
6
  "description": "Hot pinks, lime greens, and Poppins. Bubbly, playful, and unmistakably retro.",
@@ -57,11 +57,11 @@
57
57
  "lucide-react": "^1.18.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@astryxdesign/core": "0.7.3-canary.b74cf21",
60
+ "@astryxdesign/core": "0.7.3-canary.ca48bb7",
61
61
  "react": ">=19"
62
62
  },
63
63
  "devDependencies": {
64
- "@astryxdesign/cli": "0.7.3-canary.b74cf21"
64
+ "@astryxdesign/cli": "0.7.3-canary.ca48bb7"
65
65
  },
66
66
  "module": "./dist/source.mjs",
67
67
  "scripts": {
@@ -0,0 +1,13 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ import {describe, expect, it} from 'vitest';
4
+ import {generateThemeCSS} from '@astryxdesign/core/theme';
5
+ import {y2kTheme} from './y2kTheme';
6
+
7
+ describe('y2k secondary ComplexSelector', () => {
8
+ it('keeps the hover fill off a disabled trigger in either form', () => {
9
+ expect(generateThemeCSS(y2kTheme).component).toMatch(
10
+ /:hover:not\(:has\(> ?:is\(:disabled, ?\[aria-disabled="true"\]\)\)\)/,
11
+ );
12
+ });
13
+ });
package/src/y2kTheme.ts CHANGED
@@ -76,7 +76,8 @@ const SECONDARY_SELECTOR = {
76
76
 
77
77
  /**
78
78
  * The secondary Button treatment on ComplexSelector triggers (AST-079 FR2), with
79
- * the hover kept off a disabled trigger, whose inner button is disabled.
79
+ * the hover kept off a disabled trigger, whose inner button is disabled
80
+ * (natively or, keeping its tab stop, with `aria-disabled`).
80
81
  */
81
82
  const SECONDARY_COMPLEX_SELECTOR = {
82
83
  backgroundColor: SECONDARY_BUTTON.backgroundColor,
@@ -84,7 +85,8 @@ const SECONDARY_COMPLEX_SELECTOR = {
84
85
  borderStyle: SECONDARY_BUTTON.borderStyle,
85
86
  borderColor: SECONDARY_BUTTON.borderColor,
86
87
  color: SECONDARY_BUTTON.color,
87
- ':hover:not(:has(> :disabled))': SECONDARY_BUTTON[':hover'],
88
+ ':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))':
89
+ SECONDARY_BUTTON[':hover'],
88
90
  } as const;
89
91
 
90
92
  export const y2kTheme = defineTheme({