https://github.com/knowler/tooltip-label-element
https://github.com/knowler/tooltip-label-element
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/knowler/tooltip-label-element
- Owner: knowler
- Created: 2026-03-05T03:31:23.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-03-05T03:31:44.000Z (3 months ago)
- Last Synced: 2026-04-01T07:05:23.931Z (3 months ago)
- Language: JavaScript
- Size: 1.98 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `` element
_Another experimental work in progress…_
A custom element for when you want to progressively enhance a button or a links text as a tooltip.
- Leverages `interestfor` and `popover=hint` for the experience with the least JS.
- Eventually, you could just apply `popover=hint` and `interestfor` yourself, this just does it when it’s available.
- Instead of using a polyfill, this applies the functionality on top of `popover=auto`
- When the Popover API isn’t supported
- Since the tooltip is set within the button/link, you can use absolute positioning to relatively position the tooltip to the parent when anchor positioning is not available.
- Will it scale? _Scale is not a virtue._