summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-07-05 00:18:34 +0300
committereug-vs <eug-vs@keemail.me>2021-07-05 00:18:34 +0300
commit3fe6701f6ac5dcf949467f0ac582ec67e52fe288 (patch)
tree1468ead932cefefc1845be04f2be0f35fb42db2f
parent37813f9e21e810e1cc2c50913b00d1c0e49e9942 (diff)
downloadeug-vs-xyz-3fe6701f6ac5dcf949467f0ac582ec67e52fe288.tar.gz
feat: improve custom emoji accessibility
-rwxr-xr-xcompile_emoji_sedstring.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/compile_emoji_sedstring.sh b/compile_emoji_sedstring.sh
index ef22247..2fb2f6d 100755
--- a/compile_emoji_sedstring.sh
+++ b/compile_emoji_sedstring.sh
@@ -1,7 +1,10 @@
#!/bin/sh
+SIZE=24px
+STYLE="margin-bottom: -4px;"
+
cd public/emoji;
for EMOJI in *;
do
BASENAME=${EMOJI%.*}
- echo "s|:${BASENAME}:|<img src=\\\"public/emoji/${EMOJI}\\\" height=\\\"24px\\\" style=\\\"margin-bottom: -4px\\\">|g; "
+ echo "s|:${BASENAME}:|<img src=\\\"public/emoji/${EMOJI}\\\" alt=\\\"${BASENAME}-icon\\\" height=\\\"${SIZE}\\\" width=\\\"${SIZE}\\\" style=\\\"${STYLE}\\\">|g; "
done