From 897afa7e27bd36908ac8bd2cef0ab4899be0f7b3 Mon Sep 17 00:00:00 2001 From: cdrani Date: Mon, 14 Aug 2023 00:22:06 -0600 Subject: [PATCH] fix: replace div with button for a11y --- models/icon.js | 19 ++++++++++++------- styles.css | 9 --------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/models/icon.js b/models/icon.js index fff84243..ddbcb7ed 100644 --- a/models/icon.js +++ b/models/icon.js @@ -11,18 +11,23 @@ export default class Icon { #createIcon() { return ` -
+
+ ` } } diff --git a/styles.css b/styles.css index 5c6b6bb7..20e5e249 100644 --- a/styles.css +++ b/styles.css @@ -27,15 +27,6 @@ position: absolute; } -#chorus-icon { - display: flex; - flex-wrap: wrap; - justify-content: center; - width: 2rem; - height: 2rem; - cursor: pointer; -} - #chorus-snip-controls { border: 1px dashed #1ed760; }