Tabspot – Accessible Image Hotspots

Àpèjúwe

Add pins to an image and show a short text when a visitor activates one. Built for accessibility first:

  • Every pin is a real button, reachable with Tab and opened with Enter or Space.
  • Popups use the browserÌtumọ̀ Yorùbá: ’s native popover: Esc closes, clicking outside closes, focus returns to the pin.
  • No JavaScript on the front end.
  • Pin labels are read by screen readers.

Most hotspot plugins donÌtumọ̀ Yorùbá: ’t document keyboard or screen-reader support; this one is built around it.

In the editor, click the image to add a pin, drag it or use the arrow keys (Shift moves 10%) to move it. Keyboard users can also use “Add hotspot” in the sidebar, where each pin has a label, text and position sliders.

Popups sit beside their pin in browsers that support CSS anchor positioning and are centred in the others.

Source code

The build/ folder is compiled from the src/ folder included in this plugin. To rebuild it, run npm install and then npm run build.

Àwọn àwòrán ìbòjú

Àwọn ìdí

Plugin yìí pèsè 1 ìdí.

  • Tabspot Image Hotspots Keyboard and screen-reader accessible image hotspots for the block editor.

Ìgbéwọlẹ̀

  1. Upload the plugin to the /wp-content/plugins/ directory, or install it from the Plugins screen.
  2. Activate the plugin through the ‘Plugins’ screen.
  3. In the block editor, add the “Tabspot Image Hotspots” block and choose an image.

FAQ

Does it load any JavaScript on the front end?

No. Popups use the native HTML popover attribute.

Can I put images or links in the popup?

Not yet. Popup content is plain text; line breaks become paragraphs.

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“Tabspot – Accessible Image Hotspots” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “Tabspot – Accessible Image Hotspots” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

0.1.0

  • Release