diff --git a/packages/web/components/elements/icons/HeaderCheckboxIcon.tsx b/packages/web/components/elements/icons/HeaderCheckboxIcon.tsx index 158744ab4..d98c6639f 100644 --- a/packages/web/components/elements/icons/HeaderCheckboxIcon.tsx +++ b/packages/web/components/elements/icons/HeaderCheckboxIcon.tsx @@ -6,6 +6,7 @@ import React from 'react' import { MultiSelectMode } from '../../templates/homeFeed/LibraryHeader' type HeaderCheckboxIconProps = { + color: string multiSelectMode: MultiSelectMode } @@ -15,18 +16,20 @@ export const HeaderCheckboxIcon = ( switch (props.multiSelectMode) { case 'search': case 'visible': - return + return case 'none': case 'off': - return + return case 'some': - return + return } } export class HeaderCheckboxUncheckedIcon extends React.Component { render() { const size = (this.props.size || 26).toString() + const color = this.props.color || 'white' + return ( { @@ -52,6 +57,7 @@ export class HeaderCheckboxUncheckedIcon extends React.Component { export class HeaderCheckboxCheckedIcon extends React.Component { render() { const size = (this.props.size || 26).toString() + const color = this.props.color || 'white' return ( { - + { export class HeaderCheckboxHalfCheckedIcon extends React.Component { render() { const size = (this.props.size || 26).toString() + const color = this.props.color || 'white' return ( { fill="none" xmlns="http://www.w3.org/2000/svg" > - + { + const color = theme.colors.thLibraryMenuUnselected.toString() return ( ) } @@ -322,8 +326,11 @@ export function SearchBox(props: LibraryHeaderProps): JSX.Element { bg: props.multiSelectMode !== 'off' ? '$ctaBlue' : 'transparent', borderTopLeftRadius: '6px', borderBottomLeftRadius: '6px', + '--checkbox-color': 'var(--colors-thLibraryMultiselectCheckbox)', '&:hover': { - bg: '#6A6968', + bg: '$thLibraryMultiselectHover', + '--checkbox-color': + 'var(--colors-thLibraryMultiselectCheckboxHover)', }, }} > @@ -435,14 +442,17 @@ function MultiSelectControls(props: LibraryHeaderProps): JSX.Element { alignment="center" distribution="center" css={{ - width: '54px', + width: '53px', height: '100%', display: 'flex', bg: props.multiSelectMode !== 'off' ? '$ctaBlue' : 'transparent', borderTopLeftRadius: '6px', borderBottomLeftRadius: '6px', + '--checkbox-color': 'var(--colors-thLibraryMultiselectCheckbox)', '&:hover': { - bg: '#6A6968', + bg: '$thLibraryMultiselectHover', + '--checkbox-color': + 'var(--colors-thLibraryMultiselectCheckboxHover)', }, }} > diff --git a/packages/web/components/tokens/stitches.config.ts b/packages/web/components/tokens/stitches.config.ts index bfa60aaa7..dbe31d23a 100644 --- a/packages/web/components/tokens/stitches.config.ts +++ b/packages/web/components/tokens/stitches.config.ts @@ -185,10 +185,14 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } = thLibrarySelectionColor: '#FFEA9F', thLibraryNavigationMenuFooter: '#EFEADE', thLibraryMenuFooterHover: '#FFFFFF', + thLibraryMultiselectHover: '#D9D9D9', + thLibraryMultiselectCheckbox: '#3D3D3D', + thLibraryMultiselectCheckboxHover: '#3D3D3D', + thFormInput: '#EBEBEB', thHomeIcon: '#2A2A2A', - thLabelChipForeground: '#2A2A2A', // : '#2A2A2A' + thLabelChipForeground: '#2A2A2A', thLabelChipBackground: '#F5F5F5', thLabelChipSelectedBorder: 'black', thLabelChipUnselectedBorder: '#F5F5F5', @@ -319,6 +323,10 @@ const darkThemeSpec = { thLibrarySelectionColor: '#6A6968', thLibraryNavigationMenuFooter: '#3D3D3D', thLibraryMenuFooterHover: '#6A6968', + thLibraryMultiselectHover: '#6A6968', + thLibraryMultiselectCheckbox: 'white', + thLibraryMultiselectCheckboxHover: 'white', + searchActiveOutline: '#866D15', thFormInput: '#3D3D3D', thHomeIcon: '#FFFFFF',