@manakind/ui-core 0.17.0 → 0.17.1

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.
@@ -53,11 +53,11 @@
53
53
  color: var(--ds-button-primary-text);
54
54
  }
55
55
 
56
- &:hover:not(:disabled) {
56
+ &:hover:not(:disabled):not([aria-disabled="true"]) {
57
57
  background-color: var(--ds-button-primary-bg-hover);
58
58
  }
59
59
 
60
- &:active:not(:disabled) {
60
+ &:active:not(:disabled):not([aria-disabled="true"]) {
61
61
  background-color: var(--ds-button-primary-bg-active);
62
62
  }
63
63
  }
@@ -71,7 +71,7 @@
71
71
  color: var(--ds-button-secondary-text);
72
72
  }
73
73
 
74
- &:hover:not(:disabled) {
74
+ &:hover:not(:disabled):not([aria-disabled="true"]) {
75
75
  background-color: var(--ds-button-secondary-bg-hover);
76
76
  }
77
77
  }
@@ -84,7 +84,7 @@
84
84
  color: var(--ds-button-tertiary-text);
85
85
  }
86
86
 
87
- &:hover:not(:disabled) {
87
+ &:hover:not(:disabled):not([aria-disabled="true"]) {
88
88
  background-color: var(--ds-button-tertiary-bg-hover);
89
89
  }
90
90
  }
@@ -97,11 +97,11 @@
97
97
  color: var(--ds-button-danger-text);
98
98
  }
99
99
 
100
- &:hover:not(:disabled) {
100
+ &:hover:not(:disabled):not([aria-disabled="true"]) {
101
101
  background-color: var(--ds-button-danger-bg-hover);
102
102
  }
103
103
 
104
- &:active:not(:disabled) {
104
+ &:active:not(:disabled):not([aria-disabled="true"]) {
105
105
  background-color: var(--ds-button-danger-bg-active);
106
106
  }
107
107
  }
@@ -111,7 +111,14 @@
111
111
  outline-offset: 3px;
112
112
  }
113
113
 
114
- &:disabled {
114
+ /*
115
+ * `aria-disabled` keeps the button in the tab order while it does
116
+ * nothing, so focus is not dropped from a control that becomes unavailable
117
+ * while it is focused (the last step of a stepper, a sort that is already
118
+ * applied). It looks the same as `disabled`; the consumer guards the click.
119
+ */
120
+ &:disabled,
121
+ &[aria-disabled="true"] {
115
122
  opacity: var(--ds-opacity-disabled);
116
123
  cursor: not-allowed;
117
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manakind/ui-core",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {