astranchet / kirby3-accessible-emoji

A KirbyTag to turn emojis in texts into accessible HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kirby Tag - Accessible emoji

A KirbyTag to turn emojis in texts into accessible HTML, by hiding the emoji from screen readers. It should be used when the emoji is only used for a decorative purpose.

Installation

Download

Download and copy this repository to /site/plugins/accessible-emoji.

Git submodule

git submodule add https://github.com/astranchet/kirby3-accessible-emoji.git site/plugins/accessible-emoji

Composer

composer require astranchet/accessible-emoji

Usage

Make my emoji accessible! (emoji: πŸŽ‰)

It will turn this text into the following HTML:

Make my emoji accessible! <span aria-hidden="true">πŸŽ‰</span>

License

MIT

About

A KirbyTag to turn emojis in texts into accessible HTML

License:MIT License


Languages

Language:PHP 100.0%