Skip to content

Commit 4669d32

Browse files
authored
Merge pull request #945 from BuilderOSS/fix/dark-mode
fix: make minor changes to fix dark mode + fixed bottom mobile action bar for dao create flow
2 parents 9b02325 + 50c61f6 commit 4669d32

51 files changed

Lines changed: 564 additions & 258 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/web/src/layouts/DefaultLayout/Nav.styles.css.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,20 @@ export const chainPopUpButton = style({
273273
},
274274
})
275275

276+
export const chainPopUpItem = style({
277+
border: 0,
278+
width: '100%',
279+
textAlign: 'left',
280+
font: 'inherit',
281+
appearance: 'none',
282+
selectors: {
283+
'&:disabled': {
284+
pointerEvents: 'auto',
285+
cursor: 'not-allowed',
286+
},
287+
},
288+
})
289+
276290
export const themeToggleButton = style([
277291
atoms({
278292
borderStyle: 'solid',
@@ -318,6 +332,7 @@ export const wrongNetworkButton = style({
318332
'border 0.1s ease-in-out, background 0.1s ease-in-out, transform 0.1s ease-out',
319333
borderWidth: 'normal',
320334
borderStyle: 'solid',
335+
background: 'transparent',
321336
borderColor: vars.color.negative,
322337
color: vars.color.negative,
323338
selectors: {

apps/web/src/layouts/DefaultLayout/NavMenu/ChainMenu.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { useAccount, useSwitchChain } from 'wagmi'
1010

1111
import {
1212
chainPopUpButton,
13+
chainPopUpItem,
1314
navButton,
1415
navPopUpWrapper,
1516
wrongNetworkButton,
@@ -140,7 +141,7 @@ export const ChainMenu: React.FC<ChainMenuProps> = ({
140141
borderColor="border"
141142
borderStyle="solid"
142143
borderWidth="normal"
143-
backgroundColor="background1"
144+
backgroundColor="transparent"
144145
borderRadius="curved"
145146
cursor={'pointer'}
146147
align={'center'}
@@ -175,6 +176,8 @@ export const ChainMenu: React.FC<ChainMenuProps> = ({
175176
<Stack my="x4" mx="x2">
176177
{isWrongNetwork && selectedChain && (
177178
<Flex
179+
as="button"
180+
type="button"
178181
className={wrongNetworkButton}
179182
fontWeight={'label'}
180183
borderRadius="normal"
@@ -191,22 +194,19 @@ export const ChainMenu: React.FC<ChainMenuProps> = ({
191194
)}
192195
{PUBLIC_DEFAULT_CHAINS.map((chain, i, chains) => (
193196
<Flex
197+
as="button"
198+
type="button"
194199
key={chain.id}
195-
className={chainPopUpButton}
200+
className={[chainPopUpButton, chainPopUpItem]}
196201
borderRadius="normal"
197202
onClick={() => onChainChange(chain.id)}
198-
cursor={
199-
hasNetwork
200-
? isSelectedChain(chain.id)
201-
? undefined
202-
: 'not-allowed'
203-
: 'pointer'
204-
}
205203
height={'x10'}
206204
px="x4"
207205
mb={i !== chains.length - 1 ? 'x2' : undefined}
208206
align={'center'}
209207
justify={'space-between'}
208+
disabled={hasNetwork && !isSelectedChain(chain.id)}
209+
aria-current={selectedChain.id === chain.id ? 'location' : undefined}
210210
>
211211
<Flex align={'center'}>
212212
<Box h="x6" w="x6" mr="x2">

apps/web/src/modules/dashboard/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export const Dashboard: React.FC = () => {
315315
? `${totalProposals} active proposal${totalProposals !== 1 ? 's' : ''}`
316316
: 'No active proposals'
317317
}
318-
description={<Stack gap="x1">{proposalList}</Stack>}
318+
description={<Stack gap="x3">{proposalList}</Stack>}
319319
titleFontSize={18}
320320
mb={'x0'}
321321
showWarning={hasProposalsNeedingVote}

apps/web/src/modules/dashboard/SingleDaoSelector.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const sectionTitle = style({
1414
fontSize: '14px',
1515
fontWeight: 600,
1616
marginBottom: space.x3,
17-
color: color.text2,
17+
color: color.text1,
1818
})
1919

2020
export const daoItem = style([

apps/web/src/modules/explore/ExploreSortMenu.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export const ExploreSortMenu: React.FC<ExploreSortMenuProps> = () => {
6767
onChange={handleSortChange}
6868
customLabel={defaultSort}
6969
positioning="absolute"
70+
height="x10"
71+
minWidth="120px"
7072
/>
7173
</Flex>
7274
)

apps/web/src/modules/explore/ExploreToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const ExploreToolbar: React.FC<ExploreToolbarProps> = ({
2828
align={'center'}
2929
style={{ maxWidth: 912 }}
3030
>
31-
<Flex direction={'row'} w={'100%'} justify={'space-between'}>
31+
<Flex direction={'row'} w={'100%'} justify={'space-between'} align={'center'}>
3232
<Box fontSize={28} fontWeight={'heading'} mb={'x8'}>
3333
{title}
3434
</Box>

apps/web/src/modules/explore/SearchInput.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const searchInputStyle = style({
2525
borderColor: vars.color.border,
2626
},
2727
'&:focus-visible': {
28-
outline: `2px solid ${vars.color.accent}`,
28+
outline: `2px solid ${vars.color.focusRing}`,
2929
outlineOffset: '2px',
3030
},
3131
'&::placeholder': {

apps/web/src/modules/playground/PlaygroundPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const PlaygroundPage: React.FC = () => {
4949
const isCustomView = view === 'custom'
5050

5151
return (
52-
<Box w="100%">
52+
<Box w="100%" pb="x12">
5353
<PlaygroundHeader
5454
dao={selectedDao}
5555
view={view}

apps/web/src/modules/playground/components/PlaygroundLanding.css.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { atoms } from '@buildeross/zord'
1+
import { atoms, vars } from '@buildeross/zord'
22
import { style } from '@vanilla-extract/css'
33

44
export const landingContainer = style([
@@ -81,12 +81,12 @@ export const card = style([
8181
gap: '16px',
8282
minHeight: '240px',
8383
':hover': {
84-
outlineColor: 'var(--zord-colors-border-primary)',
84+
outlineColor: vars.color.focusRing,
8585
transform: 'translateY(-4px)',
8686
boxShadow: '0 8px 16px rgba(0, 0, 0, 0.1)',
8787
},
8888
':focus-visible': {
89-
outlineColor: 'var(--zord-colors-border-primary)',
89+
outlineColor: vars.color.focusRing,
9090
outlineOffset: '2px',
9191
},
9292
},

apps/web/src/pages/create.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const CreatePage: NextPageWithLayout = () => {
3232
const { isGnosisSafe } = useIsGnosisSafe(address, chain.id)
3333

3434
const { push } = useRouter()
35+
3536
const handleSuccessfulDeploy = React.useCallback(
3637
async (token: string) => {
3738
await push({
@@ -86,7 +87,7 @@ const CreatePage: NextPageWithLayout = () => {
8687

8788
const reviewAndDeploy: CreateFormSection = {
8889
title: 'Deploy',
89-
subHeading: '[Confirm your contract settings before deploying your DAO]',
90+
subHeading: 'Confirm your contract settings before deploying your DAO',
9091
form: (
9192
<ReviewAndDeploy
9293
key={'review-and-deploy'}

0 commit comments

Comments
 (0)