Skip to content

Commit

Permalink
style: misc buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
candicecz committed May 30, 2024
1 parent 41c74d6 commit 13b46ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/components/metadata/components/buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const OntologyButton = ({
leftIcon={<Icon as={FaSitemap} />}
fontSize='12px'
fontWeight='medium'
color='gray.800'
sx={{
borderBottomColor: 'inherit',
'.child-node': {
Expand All @@ -60,7 +61,13 @@ export const OntologyButton = ({
},
'.child-node p': { borderBottom: 'none' },
}}
_visited={{ _hover: { borderBottomColor: 'inherit' } }}
_visited={{
'.child-node p, .child-node svg': {
borderBottom: 'none',
color: 'inherit',
},
_hover: { borderBottomColor: 'inherit' },
}}
>
<Text pt={0.25}>{label || inDefinedTermSet} </Text>
</Button>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ const Home: NextPage<{
<Button
w='100%'
minWidth='150px'
fontSize='sm'
size='md'
size='sm'
variant={index % 2 ? 'solid' : 'outline'}
my={[1, 2, 0]}
maxWidth={['unset', '250px']}
Expand Down

0 comments on commit 13b46ad

Please sign in to comment.