Skip to content

Commit

Permalink
updated some extra items
Browse files Browse the repository at this point in the history
  • Loading branch information
reallybeard committed Aug 11, 2023
1 parent 2f0b506 commit dc681d4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Divider/Divider.theme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const DividerStyle = {
// Styles for the base style
baseStyle: () => ({
borderColor: 'border.subtlest',
borderColor: 'border.base',
}),
// Styles for the size variations
sizes: {},
Expand Down
6 changes: 3 additions & 3 deletions src/components/Layout/Header/NavBar/MainNavLink.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ButtonProps } from '@chakra-ui/react'
import { Box, Button, Tag, Tooltip, useColorModeValue, useMediaQuery } from '@chakra-ui/react'
import { Box, Button, Tag, Tooltip, useMediaQuery } from '@chakra-ui/react'
import { memo, useCallback } from 'react'
import { useTranslate } from 'react-polyglot'
import type { NavLinkProps } from 'react-router-dom'
Expand Down Expand Up @@ -39,10 +39,10 @@ export const MainNavLink = memo(
iconSpacing={isLargerThan2xl ? 4 : isCompact ? 0 : 4}
_active={{
bg: 'transparent',
color: useColorModeValue('black', 'white'),
color: 'text.base',
fontWeight: 'bold',
}}
_hover={{ bg: useColorModeValue('blackAlpha.100', 'whiteAlpha.100') }}
_hover={{ bg: 'background.button.secondary.base' }}
{...rest}
>
<Box display={{ base: isCompact ? 'none' : 'flex', '2xl': 'block' }}>{label}</Box>
Expand Down
7 changes: 3 additions & 4 deletions src/components/Modals/Settings/SettingsListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ButtonProps } from '@chakra-ui/react'
import { Box, Button, Flex, Icon, Tooltip, useColorModeValue } from '@chakra-ui/react'
import { Box, Button, Flex, Icon, Tooltip } from '@chakra-ui/react'
import { FaInfoCircle } from 'react-icons/fa'
import { useTranslate } from 'react-polyglot'
import { Text } from 'components/Text/Text'
Expand All @@ -21,20 +21,19 @@ export const SettingsListItem = ({
...restProps
}: SettingListItemProps) => {
const translate = useTranslate()
const itemHover = useColorModeValue('gray.100', 'gray.750')
return (
<Button
variant='none'
width='full'
justifyContent='space-between'
alignItems='center'
onClick={onClick}
_hover={onClick ? { bg: itemHover } : {}}
_hover={onClick ? { bg: 'background.button.secondary.base' } : {}}
{...restProps}
>
<Flex alignItems='center'>
{icon}
<Text ml={2} translation={label} color={useColorModeValue('black.900', 'white.900')} />
<Text ml={2} translation={label} />
{tooltipText && (
<Tooltip label={translate(tooltipText)}>
<Box ml={1}>
Expand Down
8 changes: 8 additions & 0 deletions src/theme/semanticTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export const semanticTokens = {
default: 'gray.400',
_dark: 'darkNeutralAlpha.500',
},
info: {
default: 'blue.500',
_dark: 'blue.200',
},
success: {
default: 'green.500',
_dark: 'green.200',
Expand All @@ -134,6 +138,10 @@ export const semanticTokens = {
default: 'red.500',
_dark: 'red.300',
},
warning: {
default: 'orange.500',
_dark: 'orange.200',
},
},
blanket: {
default: '#10121499',
Expand Down

0 comments on commit dc681d4

Please sign in to comment.