Skip to content

Commit

Permalink
disable focus state for buttons on mobile (#1043)
Browse files Browse the repository at this point in the history
Address Contract tab title: unnecessary border in mobile view

Fixes #1041
  • Loading branch information
tom2drum authored Aug 2, 2023
1 parent 7a6afac commit 727e88a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions theme/components/Button/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ const baseStyle = defineStyle({
fontWeight: 600,
borderRadius: 'base',
overflow: 'hidden',
_focusVisible: {
boxShadow: { base: 'none', lg: 'outline' },
},
});

const sizes = {
Expand Down
3 changes: 3 additions & 0 deletions theme/components/Tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const variantSoftRounded = definePartsStyle((props) => {
_hover: {
color: 'link_hovered',
},
_focusVisible: {
boxShadow: { base: 'none', lg: 'outline' },
},
},
};
});
Expand Down
2 changes: 1 addition & 1 deletion ui/address/coinBalance/AddressCoinBalanceListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const AddressCoinBalanceListItem = (props: Props) => {
) }
<Flex columnGap={ 2 } w="100%">
<Skeleton isLoaded={ !props.isLoading } fontWeight={ 500 } flexShrink={ 0 }>Age</Skeleton>
<Skeleton isLoaded={ !props.isLoading } color="text_secondary">{ timeAgo }</Skeleton>
<Skeleton isLoaded={ !props.isLoading } color="text_secondary"><span>{ timeAgo }</span></Skeleton>
</Flex>
</ListItemMobile>
);
Expand Down

0 comments on commit 727e88a

Please sign in to comment.