mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Maps] highlight combine layer background when creating layer group (#143909)
* [Maps] highlight combine layer background when creating layer group * tslint fixes * eslint fixes Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
c31c38c3d1
commit
cf8e6a7eaa
4 changed files with 15 additions and 0 deletions
|
@ -6,6 +6,10 @@
|
|||
cursor: alias !important;
|
||||
}
|
||||
|
||||
.mapLayerToc-droppable-isCombining {
|
||||
background-color: $euiColorEmptyShade !important;
|
||||
}
|
||||
|
||||
.mapLayerToc-droppable-isDragging * {
|
||||
cursor: ns-resize !important;
|
||||
}
|
|
@ -244,6 +244,10 @@ export class LayerTOC extends Component<Props> {
|
|||
dragHandleProps={draggableProvided.dragHandleProps}
|
||||
isDragging={draggableSnapshot.isDragging}
|
||||
isDraggingOver={droppableSnapshot.isDraggingOver}
|
||||
isCombineLayer={
|
||||
this.state.combineLayer !== null &&
|
||||
this.state.combineLayer.getId() === layer.getId()
|
||||
}
|
||||
/>
|
||||
);
|
||||
}}
|
||||
|
|
|
@ -62,6 +62,11 @@
|
|||
pointer-events: none !important;
|
||||
}
|
||||
|
||||
.mapTocEntry-isCombineLayer {
|
||||
transition: background-color $euiAnimSpeedExtraSlow ease;
|
||||
background-color: transparentize($euiColorSuccess, .75);
|
||||
}
|
||||
|
||||
.mapTocEntry-isSelected {
|
||||
background-color: tintOrShade($euiColorLightShade, 60%, 20%);
|
||||
}
|
||||
|
|
|
@ -49,6 +49,7 @@ export interface OwnProps {
|
|||
dragHandleProps?: DraggableProvidedDragHandleProps;
|
||||
isDragging?: boolean;
|
||||
isDraggingOver?: boolean;
|
||||
isCombineLayer?: boolean;
|
||||
}
|
||||
|
||||
type Props = ReduxStateProps & ReduxDispatchProps & OwnProps;
|
||||
|
@ -314,6 +315,7 @@ export class TOCEntry extends Component<Props, State> {
|
|||
const classes = classNames('mapTocEntry', {
|
||||
'mapTocEntry-isDragging': this.props.isDragging,
|
||||
'mapTocEntry-isDraggingOver': this.props.isDraggingOver,
|
||||
'mapTocEntry-isCombineLayer': this.props.isCombineLayer,
|
||||
'mapTocEntry-isSelected':
|
||||
this.props.layer.isPreviewLayer() ||
|
||||
(this.props.selectedLayer && this.props.selectedLayer.getId() === this.props.layer.getId()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue