Skip to content

Commit

Permalink
fix(dark-mode): Improvements to dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
baumandm committed Apr 7, 2022
1 parent 74a2a74 commit 1055551
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const TooltipIcon = forwardRef(
export const IconButtonMenu = ({
'aria-label': ariaLabel,
bg,
color = 'black',
color,
children,
icon,
fontSize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const LikeButton = ({ disabled, label, likeCount, liked, onLike, size }:
icon={liked ? iconFactoryAs('heartFilled') : iconFactoryAs('heart')}
number={likeCount}
onClick={onClick}
color={liked ? 'aurora.100' : 'polar.600'}
color={liked ? 'aurora.100' : 'unset'}
isLoading={saving}
isDisabled={disabled || !loggedIn}
size={size}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const SidebarContent = ({ links }) => {

export const HelpSidebar = ({ links, headerTitle, ...props }: Props & BoxProps) => {
const { isOpen, onOpen, onClose } = useDisclosure();
const backgroundColor = useColorModeValue('nord.100', '#555');
const backgroundColor = useColorModeValue('nord.100', 'polar.100');

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { appSlice } from '../../../../../../../../store/app.slice';
import { NewsItem } from '../news-item/news-item';

export const NewsDrawerContents = () => {
const backgroundColor = useColorModeValue('nord.100', '#555');
const backgroundColor = useColorModeValue('nord.100', 'polar.100');

const toast = useToast();
const dispatch = useDispatch();
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/main-page/main-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const MainPage = () => {

const { export: isExport, print: isPrint } = useSimpleSearchParams<{ export?: string; print?: string }>();

const backgroundColor = useColorModeValue('nord.100', '#555');
const backgroundColor = useColorModeValue('nord.100', 'polar.100');

if (isExport !== undefined) {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/shared/icon-factory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,5 @@ export const iconFactory = (key: string): IconType => {
};

export const iconFactoryAs = (key: string, props = {}): ReactElement => {
return <Icon as={iconFactory(key)} {...props} />;
return <Icon as={iconFactory(key)} {...props} sx={{ path: { stroke: 'unset' } }} />;
};

0 comments on commit 1055551

Please # to comment.