Skip to content

Commit

Permalink
Half-assed sort and dao options menu reskin. Needs more work
Browse files Browse the repository at this point in the history
  • Loading branch information
DarksightKellar committed Apr 19, 2024
1 parent f5c0b5b commit 3da8ee7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
17 changes: 4 additions & 13 deletions src/components/ui/menus/OptionMenu/OptionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ export function OptionsList({
return (
<>
{titleKey && (
<Text
textStyle="text-sm-sans-regular"
color="chocolate.200"
marginBottom="0.5rem"
>
<Text marginBottom="0.5rem" textStyle="helper-text-small" color="neutral-7">
{t(titleKey)}
</Text>
)}
Expand All @@ -36,11 +32,8 @@ export function OptionsList({
as={showOptionSelected ? Box : Text}
onClick={clickListener}
cursor="pointer"
textStyle="text-base-mono-medium"
color="grayscale.100"
_hover={{ color: 'gold.200', textDecoration: 'none' }}
paddingStart="0rem"
paddingEnd="0rem"
_hover={{ bg: 'neutral-3', textDecoration: 'none' }}
p="0.5rem 1rem"
gap={2}
closeOnSelect={closeOnSelect}
data-testid={'optionMenu-' + option.optionKey}
Expand All @@ -50,7 +43,6 @@ export function OptionsList({
<Checkbox
isChecked={option.isSelected}
onChange={clickListener}
colorScheme="gold"
iconColor="black.900"
marginEnd="0.5rem"
/>
Expand All @@ -62,7 +54,6 @@ export function OptionsList({
{showOptionCount && (
<Text
textStyle="text-base-mono-medium"
color={option.count ? 'grayscale.100' : 'grayscale.500'}
as="span"
>
{option.count}
Expand All @@ -73,7 +64,7 @@ export function OptionsList({
<Divider
marginTop="0.25rem"
marginBottom="0.25rem"
color="chocolate.700"
color="neutral-3"
/>
)}
</Box>
Expand Down
11 changes: 6 additions & 5 deletions src/components/ui/menus/OptionMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ export function OptionMenu({
{trigger}
</MenuButton>
</Tooltip>

<MenuList
rounded="lg"
shadow="menu-gold"
borderWidth="1px"
borderColor="neutral-3"
borderRadius="0.5rem"
bg="neutral-2" // neutral-2-84 ??
p="0.5rem 1rem"
mr={['auto', '1rem']}
bg="grayscale.black"
border="none"
padding="1rem"
zIndex={1000}
>
{children}
Expand Down
4 changes: 1 addition & 3 deletions src/components/ui/utils/Sort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ function SortMenuItem({
py="0.5rem"
color="grayscale.100"
sx={{
'&:hover': {
color: 'gold.500',
},
'&:hover': { bg: 'neutral-3' },
}}
data-testid={testId}
onClick={onClick}
Expand Down

0 comments on commit 3da8ee7

Please sign in to comment.