mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
add a zero width space to Badges to fix double click highlighting issue
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
0fedba5b66
commit
ad3c9ee3b9
@ -13,11 +13,12 @@ interface Props extends React.HTMLAttributes<any>, TooltipDecoratorProps {
|
|||||||
export class Badge extends React.Component<Props> {
|
export class Badge extends React.Component<Props> {
|
||||||
render() {
|
render() {
|
||||||
const { className, label, small, children, ...elemProps } = this.props;
|
const { className, label, small, children, ...elemProps } = this.props;
|
||||||
return (
|
return <>
|
||||||
<span className={cssNames("Badge", { small }, className)} {...elemProps}>
|
<span className={cssNames("Badge", { small }, className)} {...elemProps}>
|
||||||
{label}
|
{label}
|
||||||
{children}
|
{children}
|
||||||
</span>
|
</span>
|
||||||
);
|
​
|
||||||
|
</>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user