@wavv/ui 2.5.2 → 2.6.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.
@@ -22,15 +22,14 @@ const baseStyles = ({ theme: { optionItem, scale4 }, color, accented, selected,
22
22
  cursor: disabled || noSelect ? 'inherit' : 'pointer',
23
23
  pointerEvents: disabled || noSelect ? 'none' : 'auto',
24
24
  backgroundColor: !noSelect && selected ? optionItem.background.active : optionItem.background.inactive,
25
- '&:hover, &[data-hovered], &[data-focused]': {
25
+ '&[data-selected]': {
26
+ backgroundColor: optionItem.background.active
27
+ },
28
+ '&:hover, &[data-hovered], &[data-focus-visible]': {
26
29
  backgroundColor: disabled || noSelect ? optionItem.background.inactive : optionItem.background.hover
27
30
  },
28
31
  '&:focus': {
29
- outline: 'none',
30
- backgroundColor: optionItem.background.hover
31
- },
32
- '&[data-selected]': {
33
- backgroundColor: optionItem.background.active
32
+ outline: 'none'
34
33
  },
35
34
  '&[data-disabled="true"], &[data-disabled="true"]:hover': {
36
35
  color: scale4,
@@ -473,7 +473,7 @@ const dark = {
473
473
  },
474
474
  optionItem: {
475
475
  background: {
476
- hover: darkScale.scale0,
476
+ hover: colors.brandTint1,
477
477
  active: darkScale.scale1,
478
478
  inactive: 'transparent'
479
479
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "2.5.2",
3
+ "version": "2.6.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {