Skip to content

Commit fc8ed2d

Browse files
committed
fix: refactor ChainHero heading styles for improved layout and alignment
1 parent f70ed6e commit fc8ed2d

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/components/CCIP/ChainHero/ChainHero.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
margin: 0;
1818
font-size: 28px;
1919
font-weight: 500;
20+
display: flex;
21+
align-items: center;
22+
gap: 8px;
23+
position: relative;
24+
overflow: visible;
25+
line-height: var(--space-6x);
2026
}
2127

2228
.ccip-chain-hero__heading img {
@@ -121,7 +127,8 @@
121127
.ccip-chain-hero__token-logo__symbol {
122128
font-weight: 500;
123129
font-size: 18px;
124-
color: var(--gray-700);
130+
color: var(--Page-Foreground-Muted, #6c7585);
131+
align-self: self-end;
125132
}
126133

127134
.ccip-chain-hero__feeTokens__list {

src/components/CCIP/ChainHero/ChainHero.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,7 @@ function ChainHero({ chains, tokens, network, token, environment, lanes }: Chain
127127
currentTarget.src = fallbackTokenIconUrl
128128
}}
129129
/>
130-
<h1
131-
style={{
132-
display: "flex",
133-
alignItems: "center",
134-
gap: "8px",
135-
position: "relative",
136-
overflow: "visible",
137-
}}
138-
>
130+
<h1>
139131
{network?.name || token?.name}
140132
<span className="ccip-chain-hero__token-logo__symbol">{token?.id}</span>
141133

0 commit comments

Comments
 (0)