vira 31.6.0 → 31.6.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.
|
@@ -43,13 +43,15 @@ export const ViraOverflowSwitch = defineViraElement()({
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* When the large content overflows, hide it but keep it in layout so we can measure it.
|
|
46
|
-
* The small content is then shown instead.
|
|
46
|
+
* The small content is then shown instead. Using height: 0 + overflow: hidden instead of
|
|
47
|
+
* position: absolute keeps the large element in flow so the host's width still reflects
|
|
48
|
+
* the available container space, allowing the ResizeObserver to detect when there is
|
|
49
|
+
* enough room to un-collapse.
|
|
47
50
|
*/
|
|
48
51
|
${hostClasses['vira-overflow-switch-show-small'].selector} .large {
|
|
49
52
|
visibility: hidden;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
left: 0;
|
|
53
|
+
height: 0;
|
|
54
|
+
overflow: hidden;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
${hostClasses['vira-overflow-switch-show-small'].selector} .small {
|
|
@@ -100,7 +100,6 @@ export const ViraTabs = defineViraElement()({
|
|
|
100
100
|
display: flex;
|
|
101
101
|
align-items: center;
|
|
102
102
|
justify-content: center;
|
|
103
|
-
padding: 8px 16px;
|
|
104
103
|
position: relative;
|
|
105
104
|
color: ${cssVars['vira-tabs-inactive-color'].value};
|
|
106
105
|
font-size: ${viraFormCssVars['vira-form-medium-text-size'].value};
|
|
@@ -210,6 +209,11 @@ export const ViraTabs = defineViraElement()({
|
|
|
210
209
|
${ViraLink} {
|
|
211
210
|
text-decoration: none;
|
|
212
211
|
}
|
|
212
|
+
|
|
213
|
+
.tabs-container ${ViraLink} {
|
|
214
|
+
display: flex;
|
|
215
|
+
padding: 8px 16px;
|
|
216
|
+
}
|
|
213
217
|
`;
|
|
214
218
|
},
|
|
215
219
|
render({ inputs }) {
|