GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cara-tm/simple-tooltips: Simple javascript and CSS tooltips with no dependencies, use of aria-label with full fallback for old browsers. :v:

BranchesTags
Open more actions menu

Latest commit

 

History

56 Commits
56 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
_simple-tooltips.scss
_simple-tooltips.scss
 
 
simple-tooltips.html
simple-tooltips.html
 
 
simple-tooltips.js
simple-tooltips.js
 
 
simple-tooltips.min.css
simple-tooltips.min.css
 
 
simple-tooltips.min.js
simple-tooltips.min.js
 
 

Repository files navigation

Simple JS Tooltips

Simple and very light javascript tooltips with no dependencies, uses the "aria-label" attribute with full fallback for old browsers. 🤘

Usage

Simply add a tooltip class to your links. The script transferts the content of the title attributes into aria-label ones and do not affect old browsers which keep showing the default tooltip mode.

Limitations and browser bugs noticed

  • Edge browser (and old WebKit engines) underlines the tooltips content for links with a "text-decoration" rule (without possible corrections): https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/13140617/.
  • Edge browser shrinks tooltips with links surrounding long sentences. Solution: reduice the links length.
  • For links with a table-cell or table-row display, the tooltips are shown full width (according to their parents). Solution: change the tooltip's display and width properties (ex. .parent .link [class^=tooltip]:after {display: table;min-width: auto}).
  • Some old Webkit engine browsers keep tooltips text content underlined. The only solution consists to apply the CSS property text-decoration: none onto the links.

RTL languages

The CSS file provided adapts the position of little arrow for right to left reading languages (based on the <html dir=""> tag).

Demos

See in action this: online demo here

Updated version: online demo here

About

💬 Simple javascript and CSS tooltips with no dependencies, use of aria-label with full fallback for old browsers. ✌️

codepen.io/cara-tm/full/ERybMd/

Topics

all-browserscss3fallbacksgracefullyjavascriptno-dependenciestooltip

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.