Skip to content

Commit 43a4630

Browse files
authored
Merge pull request #13886 from ethereum/fix-hubhero
Fix bg color in `HubHero` component
2 parents 9754c94 + 9ed182c commit 43a4630

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/components/Hero/HubHero/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const HubHero = ({
3737
"gap-4 p-4 lg:p-8",
3838
"text-center xl:text-start",
3939
"xl:rounded",
40-
"xl:bg-hub-hero-content-bg",
40+
"xl:bg-hub-hero-content",
4141
"xl:absolute xl:top-1/2 xl:max-w-sm",
4242
"xl:-translate-y-1/2 xl:transform",
4343
"xl:backdrop-blur xl:backdrop-filter",

src/styles/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/* Misc sematics: light mode */
2323
--tooltip-shadow: rgba(0, 0, 0, 0.24);
2424
--switch-background: var(--gray-300);
25-
--hub-hero-content-bg: rgba(255, 255, 255, 0.8);
25+
--hub-hero-content: rgba(255, 255, 255, 0.8);
2626
--gradient-main: linear-gradient(
2727
102.7deg,
2828
rgba(185, 185, 241, 0.2) 0%,
@@ -61,7 +61,7 @@
6161
/* Misc sematics: dark mode */
6262
--tooltip-shadow: rgba(255, 255, 255, 0.24);
6363
--switch-background: rgba(255, 255, 255, 0.24);
64-
--hub-hero-content-bg: rgba(34, 34, 34, 0.8);
64+
--hub-hero-content: rgba(34, 34, 34, 0.8);
6565
--gradient-main: linear-gradient(
6666
102.7deg,
6767
rgba(185, 185, 241, 0.2) 0%,

tailwind.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ const config = {
217217
"active-background": "hsla(var(--menu-4-active-background))",
218218
},
219219
},
220-
},
221220

222-
/** @deprecated */
223-
"switch-background": "hsla(var(--switch-background))", // TODO: Migrate
224-
"tooltip-shadow": "var(--tooltip-shadow)",
225-
"hub-hero-content-bg": "var(--hub-hero-content-bg)",
226-
"search-background": "var(--search-background)",
221+
/** @deprecated */
222+
"switch-background": "hsla(var(--switch-background))", // TODO: Migrate
223+
"tooltip-shadow": "var(--tooltip-shadow)",
224+
"hub-hero-content": "var(--hub-hero-content)",
225+
"search-background": "var(--search-background)",
226+
},
227227

228228
backgroundImage: {
229229
"gradient-main": "var(--gradient-main)",

0 commit comments

Comments
 (0)