@zazz-ui/core 0.15.0 → 0.15.1
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/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/dist/sri.json +2 -2
- package/dist/zazz.css +1 -1
- package/editor/zazz.language-data.json +1 -1
- package/package.json +1 -1
- package/src/primitives/tooltip/tooltip.css +5 -3
|
@@ -1216,7 +1216,7 @@
|
|
|
1216
1216
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
|
|
1217
1217
|
":dir(rtl): inline-side origins, slide-in, and arrow turn mirror; the arrow uses logical insets",
|
|
1218
1218
|
"border-*: inherit — the arrow's two outer edges take the content's computed border (utilities included), so it stays outlined over a matching background",
|
|
1219
|
-
"@media not (hover: hover) — hidden on touch screens (no hover to show it, and a tap would cover the trigger's own action);
|
|
1219
|
+
"@media not (hover: hover) — the content is hidden on touch screens (no hover to show it, and a tap would cover the trigger's own action); the trigger stays. Keep essential text visible"
|
|
1220
1220
|
],
|
|
1221
1221
|
"tokens": [
|
|
1222
1222
|
"--ui-tooltip-* (@layer variables; read on the content slot)"
|
package/package.json
CHANGED
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
* logical insets
|
|
20
20
|
* @uses border-*: inherit — the arrow's two outer edges take the content's computed
|
|
21
21
|
* border (utilities included), so it stays outlined over a matching background
|
|
22
|
-
* @uses @media not (hover: hover) — hidden on touch screens (no hover to
|
|
23
|
-
* tap would cover the trigger's own action);
|
|
22
|
+
* @uses @media not (hover: hover) — the content is hidden on touch screens (no hover to
|
|
23
|
+
* show it, and a tap would cover the trigger's own action); the trigger stays.
|
|
24
|
+
* Keep essential text visible
|
|
24
25
|
* @tokens --ui-tooltip-* (@layer variables; read on the content slot)
|
|
25
26
|
*/
|
|
26
27
|
|
|
@@ -377,8 +378,9 @@
|
|
|
377
378
|
--_tooltip-arrow-turn: -45deg;
|
|
378
379
|
}
|
|
379
380
|
|
|
381
|
+
/* Only the content: the wrapper holds the trigger, which stays. */
|
|
380
382
|
@media not (hover: hover) {
|
|
381
|
-
:where(ui-tooltip, [data-ui~="tooltip"]) {
|
|
383
|
+
:where(ui-tooltip, [data-ui~="tooltip"]) [data-tooltip-slot~="content"] {
|
|
382
384
|
display: none !important;
|
|
383
385
|
}
|
|
384
386
|
}
|