From d84bf0193768bc5fc42068b07d27ca17de9b0750 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 20 Aug 2018 10:04:17 +0200 Subject: [PATCH] Replaced anchor by span to prevent accessibility error --- src/common/react-tagsinput.scss | 2 +- src/utils/TagsSelector.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/react-tagsinput.scss b/src/common/react-tagsinput.scss index ef4cc8f4..29006fb3 100644 --- a/src/common/react-tagsinput.scss +++ b/src/common/react-tagsinput.scss @@ -36,7 +36,7 @@ margin-left: 8px; } -.react-tagsinput-tag a::before { +.react-tagsinput-tag span::before { content: "\2715"; color: #fff; } diff --git a/src/utils/TagsSelector.js b/src/utils/TagsSelector.js index d0bab64f..9bf36af6 100644 --- a/src/utils/TagsSelector.js +++ b/src/utils/TagsSelector.js @@ -20,7 +20,7 @@ export default function TagsSelector({ tags, onChange, placeholder, colorGenerat return ( {getTagDisplayValue(tag)} - {!disabled && onRemove(key)}> } + {!disabled && onRemove(key)} />} ) };