mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
fix sites toggle hover states
This commit is contained in:
committed by
Franc Camps-Febrer
parent
bf012ebed9
commit
87f2f5c796
@@ -14,7 +14,7 @@ function ToolbarBottomActions (props) {
|
||||
{/* isEnabled={this.props.viewFilters.routes} */}
|
||||
{/* /> */}
|
||||
<SitesIcon
|
||||
isEnabled={props.sites.enabled}
|
||||
isActive={props.sites.enabled}
|
||||
onClickHandler={props.sites.toggle}
|
||||
/>
|
||||
{/* <CoeventIcon */}
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import React from 'react';
|
||||
|
||||
const SitesIcon = ({ isEnabled, onClickHandler }) => {
|
||||
const classes = (isEnabled) ? 'action-button enabled' : 'action-button disabled';
|
||||
const SitesIcon = ({ isActive, isDisabled, onClickHandler }) => {
|
||||
let classes = (isActive) ? 'action-button enabled' : 'action-button';
|
||||
if (isDisabled) {
|
||||
classes = 'action-button disabled'
|
||||
}
|
||||
|
||||
return (
|
||||
<button
|
||||
|
||||
@@ -96,6 +96,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:hover:not(.disabled) {
|
||||
transition: 0.2s ease;
|
||||
border: 1px solid $offwhite;
|
||||
|
||||
Reference in New Issue
Block a user