Skip to content

Commit

Permalink
Style new header
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Sep 6, 2024
1 parent 65ab1db commit 202239e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions centrifuge-app/src/components/LayoutBase/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export const WalletInner = styled(Stack)`
@media (min-width: ${({ theme }) => theme.breakpoints[BREAK_POINT_COLUMNS]}) {
justify-content: flex-end;
height: 60px;
}
`

Expand Down
5 changes: 1 addition & 4 deletions centrifuge-app/src/pages/Pool/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@ export function PoolDetailHeader({ actions }: Props) {
return (
<PageHeader
title={<TextWithPlaceholder isLoading={isLoading}>{metadata?.pool?.name ?? 'Unnamed pool'}</TextWithPlaceholder>}
subtitle={
<TextWithPlaceholder isLoading={isLoading}>by {metadata?.pool?.issuer.name ?? 'Unknown'}</TextWithPlaceholder>
}
parent={{ to: `/pools${state?.token ? '/tokens' : ''}`, label: state?.token ? 'Tokens' : 'Pools' }}
icon={
<Eththumbnail show={isTinlakePool}>
{metadata?.pool?.icon ? (
<Box as="img" width="iconLarge" height="iconLarge" src={iconUri} />
<Box as="img" width="iconLarge" height="iconLarge" src={iconUri} borderRadius={4} />
) : (
<Shelf
width="iconLarge"
Expand Down
5 changes: 3 additions & 2 deletions fabric/src/components/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ const StyledTabsItem = styled.button<{ $active?: boolean }>(
paddingLeft: 2,
paddingRight: 2,
paddingBottom: 2,
color: 'textPrimary',
color: $active ? 'textPrimary' : 'textSecondary',
boxShadow: $active ? `inset 0 -2px 0 ${theme.colors.textGold}` : 'none',
fontWeight: 400,

'&:hover, &:active, &:focus-visible': {
color: 'textGold',
Expand All @@ -70,7 +71,7 @@ type TabsItemPrivateProps = TabsItemProps & {
export function TabsItem({ children, active, onClick, ariaLabel, ...rest }: TabsItemPrivateProps) {
return (
<StyledTabsItem onClick={onClick} $active={active} role="tab" aria-label={ariaLabel} {...rest}>
<Text variant="interactive1" color="inherit">
<Text variant="interactive1" color="inherit" fontWeight={400}>
{children}
</Text>
</StyledTabsItem>
Expand Down

0 comments on commit 202239e

Please sign in to comment.