Set proper color for active chapter card in reader
This commit is contained in:
@@ -211,9 +211,12 @@ export const ChapterCard = memo((props: IProps) => {
|
|||||||
onClick={(e) => handleClickOpenMenu(e, popupState.open)}
|
onClick={(e) => handleClickOpenMenu(e, popupState.open)}
|
||||||
aria-label="more"
|
aria-label="more"
|
||||||
size="large"
|
size="large"
|
||||||
sx={applyStyles(mode === 'reader' && isActiveChapter, {
|
sx={{
|
||||||
color: 'secondary',
|
color: 'inherit',
|
||||||
})}
|
...applyStyles(mode === 'reader' && isActiveChapter, {
|
||||||
|
color: 'primary.contrastText',
|
||||||
|
}),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<MoreVertIcon />
|
<MoreVertIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user