mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +03:00
Replaced anchor by span to prevent accessibility error
This commit is contained in:
parent
84d012d7af
commit
d84bf01937
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-tagsinput-tag a::before {
|
.react-tagsinput-tag span::before {
|
||||||
content: "\2715";
|
content: "\2715";
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default function TagsSelector({ tags, onChange, placeholder, colorGenerat
|
||||||
return (
|
return (
|
||||||
<span key={key} style={{ backgroundColor: colorGenerator.getColorForKey(tag) }} {...other}>
|
<span key={key} style={{ backgroundColor: colorGenerator.getColorForKey(tag) }} {...other}>
|
||||||
{getTagDisplayValue(tag)}
|
{getTagDisplayValue(tag)}
|
||||||
{!disabled && <a className={classNameRemove} onClick={() => onRemove(key)}> </a>}
|
{!disabled && <span className={classNameRemove} onClick={() => onRemove(key)} />}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue