@milktop/react-ui 0.3.16 → 0.3.17
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/dist/tabs/tabs.css +3 -1
- package/dist/theme.css +2 -0
- package/package.json +1 -1
package/dist/tabs/tabs.css
CHANGED
|
@@ -54,5 +54,7 @@
|
|
|
54
54
|
background: var(--ui-surface); border-radius: calc(var(--ui-radius) - 2px); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); } }
|
|
55
55
|
[data-scope=tabs][data-part=panels] { padding-top: 1rem; }
|
|
56
56
|
[data-scope=tabs][data-part=content] { display: block; outline: none;
|
|
57
|
-
&:focus-visible { outline: 2px solid var(--ui-ring-soft); outline-offset: 4px; border-radius: 4px; }
|
|
57
|
+
&:focus-visible { outline: 2px solid var(--ui-ring-soft); outline-offset: 4px; border-radius: 4px; }
|
|
58
|
+
/* Zag sets `hidden` on the tab left a frame after the new one shows; without this both draw for that frame and the new one jumps up */
|
|
59
|
+
&[data-state=closed] { display: none; } }
|
|
58
60
|
}
|
package/dist/theme.css
CHANGED
|
@@ -159,6 +159,8 @@
|
|
|
159
159
|
/* Zag hides closed parts with `hidden`; that beats any display a component sets. */
|
|
160
160
|
[data-scope][hidden] { display: none !important; }
|
|
161
161
|
[data-scope]:focus:not(:focus-visible) { outline: none; }
|
|
162
|
+
/* An icon's room before it has drawn, so what's beside it doesn't move when it does */
|
|
163
|
+
iconify-icon { display: inline-block; width: 1em; height: 1em; }
|
|
162
164
|
|
|
163
165
|
@media (prefers-reduced-motion: reduce) {
|
|
164
166
|
[data-scope][data-part] { animation: none !important; transition: none !important; }
|