@ptlm-azulejo/tooltip 0.0.1-alpha.95 → 1.0.0-alpha.106
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/README.md +3 -3
- package/dist/index.js +504 -472
- package/dist/index.umd.cjs +1 -1
- package/dist/src/index.vue.d.ts +4 -1
- package/dist/src/index.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,7 +115,7 @@ Pass Tailwind class strings; they **merge** with defaults via `cn()` (conflictin
|
|
|
115
115
|
| `root` | Wrapper around the trigger and bubble | `tooltip` |
|
|
116
116
|
| `content` | The bubble (`role="tooltip"`) | `tooltip-content` |
|
|
117
117
|
| `text` | The label inside the bubble | `tooltip-text` |
|
|
118
|
-
| `pointer` | Origin arrow on the bubble edge | `tooltip-pointer` |
|
|
118
|
+
| `pointer` | Origin arrow wrapper (masked triangle on the bubble edge) | `tooltip-pointer` |
|
|
119
119
|
|
|
120
120
|
```vue
|
|
121
121
|
<AzTooltip
|
|
@@ -126,14 +126,14 @@ Pass Tailwind class strings; they **merge** with defaults via `cn()` (conflictin
|
|
|
126
126
|
root: 'shadow-lg',
|
|
127
127
|
content: 'bg-[color:var(--color-background-accent-inverse)] border-transparent',
|
|
128
128
|
text: 'uppercase tracking-wide',
|
|
129
|
-
pointer: '
|
|
129
|
+
pointer: '[--tooltip-pointer-fill:var(--color-background-accent-inverse)] [--tooltip-pointer-border:transparent]',
|
|
130
130
|
}"
|
|
131
131
|
>
|
|
132
132
|
Trigger
|
|
133
133
|
</AzTooltip>
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
When you recolour `content`,
|
|
136
|
+
When you recolour `content`, set `--tooltip-pointer-fill` / `--tooltip-pointer-border` on `pointer` so the arrow stays connected.
|
|
137
137
|
|
|
138
138
|
## Accessibility
|
|
139
139
|
|