React Scheduler > Difficulty with applying css on row header background and rowmove handle
9 months ago.
Hello,
We have a requirement to make the background of the row header blue on hover of the row header. However, upon hovering on the rowmove handle, the row header’s background is no longer blue.
Can you provide guidance on this? Thank you!
Context:
-
I am rendering row header’s JSX using `onBeforeRowHeaderDomAdd`
-
I am overriding the rowmove handle css using styled-component and the snippet is as seen below.
const RowMoveHandlerCssOverride = css`
.scheduler_default_rowheader:hover {
background-color: blue; // Make background of row header blue
}
.scheduler_default_rowmove_handle {
left: 20px !important;
top: 50% !important; /* Center vertically */
transform: translateY(-50%);
cursor: grab !important;
background-color: transparent !important;
background-image: ${({ theme }) =>
`url("${createDragGripIconDataUri({ color: 'blue' })}")`} !important;
}
.scheduler_default_rowmove_handle:hover {
background-image: ${({ theme }) =>
`url("${createDragGripIconDataUri({ color: 'red' })}")`} !important;
// TODO - `scheduler_default_rowheader` hover effect is not being applied
// when rowmove handle is hovered on
}
`;
<RowMoveHandlerCssOverride />
DayPilot
