@dataloop-ai/components 0.20.163 → 0.20.164
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
CHANGED
|
@@ -203,7 +203,11 @@ export default defineComponent({
|
|
|
203
203
|
/**
|
|
204
204
|
* Overwrite default text color on hover
|
|
205
205
|
*/
|
|
206
|
-
hoverTextColor: { type: String, default: null }
|
|
206
|
+
hoverTextColor: { type: String, default: null },
|
|
207
|
+
/**
|
|
208
|
+
* Override icon color when button is disabled
|
|
209
|
+
*/
|
|
210
|
+
disabledIconColor: { type: String, default: null }
|
|
207
211
|
},
|
|
208
212
|
emits: ['click', 'mousedown', 'dblclick'],
|
|
209
213
|
setup(props) {
|
|
@@ -243,6 +247,9 @@ export default defineComponent({
|
|
|
243
247
|
},
|
|
244
248
|
getIconColor(): string {
|
|
245
249
|
if (this.disabled) {
|
|
250
|
+
if (this.disabledIconColor) {
|
|
251
|
+
return this.disabledIconColor
|
|
252
|
+
}
|
|
246
253
|
return setTextColor({
|
|
247
254
|
disabled: this.disabled,
|
|
248
255
|
outlined: this.outlined,
|
|
@@ -569,6 +576,7 @@ export default defineComponent({
|
|
|
569
576
|
|
|
570
577
|
.dl-button-icon {
|
|
571
578
|
transition: var(--dl-button-text-transition-duration);
|
|
579
|
+
transition-property: color;
|
|
572
580
|
}
|
|
573
581
|
|
|
574
582
|
.dl-button-container {
|