Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Aug 27, 2024
1 parent 1ff4757 commit 8b5680e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/LayoutBase/LayoutSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Props = {

export function LayoutSection({ title, titleAddition, subtitle, headerRight, children, ...boxProps }: Props) {
return (
<BasePadding as="section" gap={2} {...boxProps}>
<BasePadding as="section" gap={2} pt={20} pb={20} {...boxProps}>
{(title || titleAddition || subtitle || headerRight) && (
<Shelf justifyContent="space-between" as="header" maxWidth="mainContent">
<Stack>
Expand Down
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 @@ -45,6 +45,7 @@ export const Inner = styled(Grid)`
theme.breakpoints['L']}) {
width: 7vw;
background-color: ${({ theme }) => theme.colors.backgroundBlack};
overflow: visible;
}
@media (min-width: ${({ theme }) => theme.breakpoints['L']}) {
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/Menu/IssuerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function IssuerMenu({ defaultOpen = false, children }: IssuerMenuProps) {
position={['absolute', 'absolute', 'absolute', 'relative', 'static']}
top={['auto', 'auto', 0, 'auto']}
bottom={[offset, offset, 'auto']}
left={[1, 1, offset, offset, 'auto']}
left={[1, 1, offset, 'auto', 'auto']}
width={[fullWidth, fullWidth, 200, '100%']}
mt={[0, 0, 0, 1]}
zIndex={20}
Expand Down
5 changes: 2 additions & 3 deletions centrifuge-app/src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
IconSwitch,
IconWallet,
MenuItemGroup,
Menu as Panel,
Shelf,
Stack,
} from '@centrifuge/fabric'
Expand Down Expand Up @@ -91,7 +90,7 @@ export function Menu() {
)}
</Stack>
) : (
<Panel>
<Stack as="ul" gap={1}>
{!!pools.length &&
pools.map((pool) => (
<MenuItemGroup key={pool.id}>
Expand All @@ -105,7 +104,7 @@ export function Menu() {
<CreatePool />
</Box>
)}
</Panel>
</Stack>
)}
</IssuerMenu>
)}
Expand Down
8 changes: 4 additions & 4 deletions fabric/src/components/Card/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ type Props = {
export type CardProps = Props &
Omit<BoxProps, 'border' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'bg' | 'backgroundColor'>

export const Card = styled(Box)<Props>(({ variant = 'default', backgroundColor }) => {
return css({
background: backgroundColor ?? 'backgroundPage',
export const Card = styled(Box)<Props>(({ variant = 'default', backgroundColor }) =>
css({
bg: backgroundColor ?? 'white',
borderRadius: 'card',
borderWidth: variant === 'default' && !backgroundColor ? 1 : 0,
borderStyle: 'solid',
Expand All @@ -25,4 +25,4 @@ export const Card = styled(Box)<Props>(({ variant = 'default', backgroundColor }
boxShadow: variant === 'interactive' ? 'cardActive' : undefined,
},
})
})
)
4 changes: 2 additions & 2 deletions fabric/src/theme/altairDark.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { baseTheme } from './tokens/baseTheme'
import { brandAltair } from './tokens/brandAltair'
import { black, blueScale, gold, grayScale, yellowScale } from './tokens/colors'
import { modeDark } from './tokens/modeDark'
import { colorTheme } from './tokens/theme'
import { FabricTheme } from './types'

export const altairDark: FabricTheme = {
...baseTheme,
scheme: 'dark',
colors: {
...brandAltair,
...modeDark.colors,
...colorTheme.colors,
primarySelectedBackground: yellowScale[500],
secondarySelectedBackground: yellowScale[800],
focus: yellowScale[500],
Expand Down

0 comments on commit 8b5680e

Please sign in to comment.