backup
This commit is contained in:
@@ -150,16 +150,18 @@ function GeoLayer({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<g
|
<g key={geo.rsmKey} style={{ cursor: cc ? "pointer" : "default" }}>
|
||||||
key={geo.rsmKey}
|
<Geography
|
||||||
style={{ cursor: cc ? "pointer" : "default" }}
|
geography={geo}
|
||||||
role={cc ? "button" : undefined}
|
role={cc ? "button" : undefined}
|
||||||
tabIndex={cc ? 0 : undefined}
|
tabIndex={cc ? 0 : undefined}
|
||||||
aria-label={cc
|
aria-label={
|
||||||
|
cc
|
||||||
? `${cc}: ${String(count)} ban${count !== 1 ? "s" : ""}${
|
? `${cc}: ${String(count)} ban${count !== 1 ? "s" : ""}${
|
||||||
isSelected ? " (selected)" : ""
|
isSelected ? " (selected)" : ""
|
||||||
}`
|
}`
|
||||||
: undefined}
|
: undefined
|
||||||
|
}
|
||||||
aria-pressed={isSelected || undefined}
|
aria-pressed={isSelected || undefined}
|
||||||
onClick={(): void => {
|
onClick={(): void => {
|
||||||
if (cc) handleClick(cc);
|
if (cc) handleClick(cc);
|
||||||
@@ -194,9 +196,6 @@ function GeoLayer({
|
|||||||
onMouseLeave={(): void => {
|
onMouseLeave={(): void => {
|
||||||
setTooltip(null);
|
setTooltip(null);
|
||||||
}}
|
}}
|
||||||
>
|
|
||||||
<Geography
|
|
||||||
geography={geo}
|
|
||||||
style={{
|
style={{
|
||||||
default: {
|
default: {
|
||||||
fill: isSelected ? tokens.colorBrandBackground : fillColor,
|
fill: isSelected ? tokens.colorBrandBackground : fillColor,
|
||||||
|
|||||||
Reference in New Issue
Block a user