@umbraco-ui/uui-menu-item 1.16.0 → 1.17.0-rc.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.
- package/lib/index.js +22 -2
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -197,6 +197,7 @@ UUIMenuItemElement.styles = [
|
|
|
197
197
|
|
|
198
198
|
/** Active */
|
|
199
199
|
:host([active]) #label-button,
|
|
200
|
+
:host([active]) #actions-container,
|
|
200
201
|
:host([active]) #caret-button {
|
|
201
202
|
color: var(
|
|
202
203
|
--uui-menu-item-color-active,
|
|
@@ -234,6 +235,8 @@ UUIMenuItemElement.styles = [
|
|
|
234
235
|
/** Selected */
|
|
235
236
|
:host([selected]:not([select-mode='highlight'], [disabled]))
|
|
236
237
|
#label-button,
|
|
238
|
+
:host([selected]:not([select-mode='highlight'], [disabled]))
|
|
239
|
+
#actions-container,
|
|
237
240
|
:host([selected]:not([select-mode='highlight'], [disabled]))
|
|
238
241
|
#caret-button {
|
|
239
242
|
color: var(
|
|
@@ -305,6 +308,9 @@ UUIMenuItemElement.styles = [
|
|
|
305
308
|
:host([select-mode='highlight'][selected]:not([disabled]))
|
|
306
309
|
#menu-item
|
|
307
310
|
#label-button,
|
|
311
|
+
:host([select-mode='highlight'][selected]:not([disabled]))
|
|
312
|
+
#menu-item
|
|
313
|
+
#actions-container,
|
|
308
314
|
:host([select-mode='highlight'][selected]:not([disabled]))
|
|
309
315
|
#menu-item
|
|
310
316
|
#caret-button {
|
|
@@ -478,6 +484,9 @@ UUIMenuItemElement.styles = [
|
|
|
478
484
|
display: inline-flex;
|
|
479
485
|
margin-right: var(--uui-size-2,6px);
|
|
480
486
|
}
|
|
487
|
+
:host([selected]:not([select-mode='highlight'], [disabled])) #icon {
|
|
488
|
+
--uui-icon-color-overwrite: currentColor;
|
|
489
|
+
}
|
|
481
490
|
|
|
482
491
|
#badge {
|
|
483
492
|
font-size: 12px;
|
|
@@ -499,7 +508,7 @@ UUIMenuItemElement.styles = [
|
|
|
499
508
|
border-radius: calc(var(--uui-border-radius,3px) - 1px);
|
|
500
509
|
position: absolute;
|
|
501
510
|
inset: 3px 3px 3px -5px;
|
|
502
|
-
|
|
511
|
+
outline: 2px solid var(--uui-color-focus,#3879ff);
|
|
503
512
|
}
|
|
504
513
|
|
|
505
514
|
:host([select-mode='highlight']) #caret-button:focus-visible {
|
|
@@ -512,7 +521,7 @@ UUIMenuItemElement.styles = [
|
|
|
512
521
|
position: absolute;
|
|
513
522
|
inset: 3px;
|
|
514
523
|
border-radius: calc(var(--uui-border-radius,3px) - 1px);
|
|
515
|
-
|
|
524
|
+
outline: 2px solid var(--uui-color-focus,#3879ff);
|
|
516
525
|
}
|
|
517
526
|
|
|
518
527
|
/** Slots */
|
|
@@ -532,6 +541,17 @@ UUIMenuItemElement.styles = [
|
|
|
532
541
|
--uui-button-height: calc(var(--uui-size-base-unit) * 4);
|
|
533
542
|
margin-right: var(--uui-size-base-unit);
|
|
534
543
|
}
|
|
544
|
+
|
|
545
|
+
@keyframes fadeIn {
|
|
546
|
+
100% {
|
|
547
|
+
opacity: 1;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
uui-loader-bar {
|
|
552
|
+
opacity: 0;
|
|
553
|
+
animation: fadeIn 120ms ease-in 60ms forwards;
|
|
554
|
+
}
|
|
535
555
|
`
|
|
536
556
|
];
|
|
537
557
|
__decorateClass([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-menu-item",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "1.
|
|
34
|
-
"@umbraco-ui/uui-loader-bar": "1.
|
|
35
|
-
"@umbraco-ui/uui-symbol-expand": "1.
|
|
33
|
+
"@umbraco-ui/uui-base": "1.17.0-rc.0",
|
|
34
|
+
"@umbraco-ui/uui-loader-bar": "1.17.0-rc.0",
|
|
35
|
+
"@umbraco-ui/uui-symbol-expand": "1.17.0-rc.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-menu-item",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "028e20bd07ebf02164589b086e746c9cc587409c"
|
|
47
47
|
}
|