mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-02 05:36:38 +00:00
Replaced anchor by span to prevent accessibility error
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.react-tagsinput-tag a::before {
|
||||
.react-tagsinput-tag span::before {
|
||||
content: "\2715";
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ export default function TagsSelector({ tags, onChange, placeholder, colorGenerat
|
||||
return (
|
||||
<span key={key} style={{ backgroundColor: colorGenerator.getColorForKey(tag) }} {...other}>
|
||||
{getTagDisplayValue(tag)}
|
||||
{!disabled && <a className={classNameRemove} onClick={() => onRemove(key)}> </a>}
|
||||
{!disabled && <span className={classNameRemove} onClick={() => onRemove(key)} />}
|
||||
</span>
|
||||
)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user