vira 29.5.0 → 29.5.2
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.
|
@@ -137,6 +137,8 @@ export const ViraMenu = defineViraElement()({
|
|
|
137
137
|
class="menu-item ${classMap({
|
|
138
138
|
disabled: !!item.disabled,
|
|
139
139
|
selected,
|
|
140
|
+
'default-pointer-styles': !item.disableDefaultPointerStyles,
|
|
141
|
+
'no-default-pointer-styles': !!item.disableDefaultPointerStyles,
|
|
140
142
|
})}"
|
|
141
143
|
${testId(viraMenuTestIds.item)}
|
|
142
144
|
title=${ifDefined(item.titleText || undefined)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, defineElementEvent, html, listen, onResize } from 'element-vir';
|
|
2
|
-
import { noNativeFormStyles, viraAnimationDurations } from '../styles/index.js';
|
|
2
|
+
import { noNativeFormStyles, noUserSelect, viraAnimationDurations } from '../styles/index.js';
|
|
3
3
|
import { defineViraElement } from './define-vira-element.js';
|
|
4
4
|
/**
|
|
5
5
|
* A wrapper element that can collapse and expand to fit its content dynamically and efficiently.
|
|
@@ -41,9 +41,12 @@ export const ViraCollapsibleWrapper = defineViraElement()({
|
|
|
41
41
|
.collapsing-element {
|
|
42
42
|
transition: height ${viraAnimationDurations['vira-pretty-animation-duration'].value};
|
|
43
43
|
overflow: hidden;
|
|
44
|
+
${noUserSelect}
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
+
|
|
47
|
+
${hostClasses['vira-collapsible-wrapper-expanded'].selector} .collapsing-element {
|
|
46
48
|
pointer-events: none;
|
|
49
|
+
user-select: auto;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
@media print {
|