Skip to content

Commit

Permalink
style: CR-requested adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
aziolek committed Sep 3, 2024
1 parent 447daec commit 998b38c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
height: 9.6rem;
padding: 0 !important;
background: $color-octant-grey3 !important;

&:hover {
.walletOptionsIcons {
filter: none !important;
}
}
}

.walletOptionsButtonsOuter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { TFunction } from 'i18next';

import { RAINBOW_KIT_PROVIDER } from 'constants/domElementsIds';

export const setCustomStylesForRainbowKitModal = (t: TFunction): void => {
const modalRootWrapper = document.querySelector('[aria-labelledby="rk_connect_title"]');
const modalRootWrapper = document.querySelector(`[data-rk="${RAINBOW_KIT_PROVIDER}"]`);

if (!modalRootWrapper) {
return;
}

// RaibowKit connect modal.
const rainbowkitConnectModal = modalRootWrapper?.parentNode?.parentNode;
const rainbowkitConnectModal = modalRootWrapper?.parentNode;

if (!rainbowkitConnectModal) {
return;
Expand Down
1 change: 1 addition & 0 deletions client/src/constants/domElementsIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export const METRICS_EPOCH_ID = 'MetricsEpoch';
export const METRICS_GENERAL_ID = 'MetricsGeneral';
export const METRICS_PERSONAL_ID = 'MetricsPersonal';
export const LAYOUT_BODY_ID = 'LayoutBody';
export const RAINBOW_KIT_PROVIDER = 'RainbowKitProvider';
2 changes: 2 additions & 0 deletions client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import env, { envViteKeys, envsAllowedToBeEmpty } from 'env';
import clientReactQuery from './api/clients/client-react-query';
import { wagmiConfig } from './api/clients/client-wagmi';
import App from './App';
import { RAINBOW_KIT_PROVIDER } from './constants/domElementsIds';

import '@rainbow-me/rainbowkit/styles.css';

Expand Down Expand Up @@ -59,6 +60,7 @@ if (window.location.hash) {
<WagmiProvider config={wagmiConfig}>
<QueryClientProvider client={clientReactQuery}>
<RainbowKitProvider
id={RAINBOW_KIT_PROVIDER}
modalSize="compact"
theme={lightTheme({
accentColor: '#2d9b87',
Expand Down
2 changes: 1 addition & 1 deletion client/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"connecting": "Connecting ...",
"walletConnect": "WalletConnect",
"ledgerConnect": "Ledger",
"walletSelectHeader": "Choose a browser wallet"
"walletSelectHeader": "Choose a browser wallet"
},
"donationEstimateBox": {
"donationEstimate": "Donation estimate",
Expand Down

0 comments on commit 998b38c

Please sign in to comment.