Skip to content

Commit 5d33a74

Browse files
committed
fix h2 format
1 parent b54ca67 commit 5d33a74

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/features/chainlink-automation/components/NetworkIcons.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default function NetworkIcons() {
2323
"POLYGON",
2424
"POLYGON_ZKEVM",
2525
"SCROLL",
26+
"ZKSYNC",
2627
]
2728

2829
// Special mapping for display names to technology identifiers
@@ -71,6 +72,10 @@ export default function NetworkIcons() {
7172
const wrapper = document.createElement("span")
7273
wrapper.style.display = "inline-flex"
7374
wrapper.style.alignItems = "center"
75+
wrapper.style.fontSize = "inherit"
76+
wrapper.style.lineHeight = "inherit"
77+
wrapper.style.fontFamily = "inherit"
78+
wrapper.style.fontWeight = "inherit"
7479

7580
// Move the heading content to the wrapper
7681
while (heading.firstChild) {
@@ -90,6 +95,10 @@ export default function NetworkIcons() {
9095
const wrapper = document.createElement("span")
9196
wrapper.style.display = "inline-flex"
9297
wrapper.style.alignItems = "center"
98+
wrapper.style.fontSize = "inherit"
99+
wrapper.style.lineHeight = "inherit"
100+
wrapper.style.fontFamily = "inherit"
101+
wrapper.style.fontWeight = "inherit"
93102

94103
// Move the anchor content to the wrapper
95104
while (anchor.firstChild) {
@@ -106,6 +115,10 @@ export default function NetworkIcons() {
106115
const wrapper = document.createElement("span")
107116
wrapper.style.display = "inline-flex"
108117
wrapper.style.alignItems = "center"
118+
wrapper.style.fontSize = "inherit"
119+
wrapper.style.lineHeight = "inherit"
120+
wrapper.style.fontFamily = "inherit"
121+
wrapper.style.fontWeight = "inherit"
109122

110123
// Move the heading content to the wrapper
111124
while (heading.firstChild) {

src/features/chainlink-functions/components/NetworkIcons.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useEffect } from "preact/compat"
33
import { normalizeTechnologyName } from "@features/utils/index.ts"
44

55
// List of valid network names that should have icons
6-
const VALID_NETWORKS = ["Arbitrum", "Avalanche", "BASE", "Celo", "Ethereum", "OP", "Polygon", "Soneium"]
6+
const VALID_NETWORKS = ["Arbitrum", "Avalanche", "BASE", "Celo", "Ethereum", "OP", "Polygon", "Soneium", "ZKSync"]
77

88
// Component to add icons to network headings in the Functions supported-networks page
99
export default function NetworkIcons() {
@@ -59,6 +59,10 @@ export default function NetworkIcons() {
5959
const wrapper = document.createElement("span")
6060
wrapper.style.display = "inline-flex"
6161
wrapper.style.alignItems = "center"
62+
wrapper.style.fontSize = "inherit"
63+
wrapper.style.lineHeight = "inherit"
64+
wrapper.style.fontFamily = "inherit"
65+
wrapper.style.fontWeight = "inherit"
6266

6367
// Move the anchor content to the wrapper
6468
while (existingAnchor.firstChild) {
@@ -75,6 +79,10 @@ export default function NetworkIcons() {
7579
const wrapper = document.createElement("span")
7680
wrapper.style.display = "inline-flex"
7781
wrapper.style.alignItems = "center"
82+
wrapper.style.fontSize = "inherit"
83+
wrapper.style.lineHeight = "inherit"
84+
wrapper.style.fontFamily = "inherit"
85+
wrapper.style.fontWeight = "inherit"
7886

7987
// Move the heading content to the wrapper
8088
while (heading.firstChild) {

0 commit comments

Comments
 (0)