Skip to content

Commit fd47a94

Browse files
authored
Merge pull request #10908 from ethereum/staging
Deploy v7.18.0
2 parents 60494d6 + 9491fd5 commit fd47a94

File tree

41 files changed

+659
-77
lines changed

Some content is hidden

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

41 files changed

+659
-77
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10384,6 +10384,15 @@
1038410384
"contributions": [
1038510385
"content"
1038610386
]
10387+
},
10388+
{
10389+
"login": "perriefidelis",
10390+
"name": "Peace Ojemeh",
10391+
"avatar_url": "https://avatars.githubusercontent.com/u/30669761?v=4",
10392+
"profile": "https://github.com/perriefidelis",
10393+
"contributions": [
10394+
"content"
10395+
]
1038710396
}
1038810397
],
1038910398
"contributorsPerLine": 7,

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
16241624
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MwitahJob"><img src="https://avatars.githubusercontent.com/u/136892656?v=4?s=100" width="100px;" alt="Mwitah "/><br /><sub><b>Mwitah </b></sub></a><br /><a href="#content-MwitahJob" title="Content">🖋</a></td>
16251625
<td align="center" valign="top" width="14.28%"><a href="https://github.com/TucksonDev"><img src="https://avatars.githubusercontent.com/u/105675159?v=4?s=100" width="100px;" alt="Tuckson"/><br /><sub><b>Tuckson</b></sub></a><br /><a href="#content-TucksonDev" title="Content">🖋</a></td>
16261626
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/_Akamig"><img src="https://avatars.githubusercontent.com/u/6278999?v=4?s=100" width="100px;" alt="Akamig"/><br /><sub><b>Akamig</b></sub></a><br /><a href="#content-Akamig" title="Content">🖋</a></td>
1627+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/perriefidelis"><img src="https://avatars.githubusercontent.com/u/30669761?v=4?s=100" width="100px;" alt="Peace Ojemeh"/><br /><sub><b>Peace Ojemeh</b></sub></a><br /><a href="#content-perriefidelis" title="Content">🖋</a></td>
16271628
</tr>
16281629
</tbody>
16291630
</table>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "7.18.0",
3+
"version": "7.19.0",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "git@github.com:ethereum/ethereum-org-website.git",

src/@chakra-ui/gatsby-plugin/components/Button.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ const variantSolid = defineStyle({
3939
color: "background.base",
4040
bg: "primary.base",
4141
borderColor: "transparent",
42+
_disabled: {
43+
bg: "disabled",
44+
color: "background.base",
45+
},
4246
_hover: {
4347
color: "background.base",
4448
bg: "primary.hover",
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
import { tableAnatomy } from "@chakra-ui/anatomy"
2+
import {
3+
createMultiStyleConfigHelpers,
4+
cssVar,
5+
defineStyle,
6+
} from "@chakra-ui/react"
7+
import { defineMergeStyles, tableDefaultTheme } from "./components.utils"
8+
9+
const { defineMultiStyleConfig, definePartsStyle } =
10+
createMultiStyleConfigHelpers(tableAnatomy.keys)
11+
12+
const $bgColor = cssVar("bg-color")
13+
14+
const cellPadding = defineStyle({
15+
p: 4,
16+
})
17+
18+
const baseStyle = defineMergeStyles(
19+
tableDefaultTheme.baseStyle,
20+
definePartsStyle({
21+
table: {
22+
[$bgColor.variable]: "colors.background.highlight",
23+
minW: "556px",
24+
},
25+
th: {
26+
borderBottom: "1px",
27+
borderColor: "body.base",
28+
color: "body.base",
29+
textTransform: "capitalize",
30+
verticalAlign: "bottom",
31+
...cellPadding,
32+
},
33+
tr: {
34+
"th, td": {
35+
_notLast: {
36+
borderRight: "2px",
37+
borderRightColor: "background.base",
38+
},
39+
},
40+
},
41+
td: {
42+
...cellPadding,
43+
},
44+
tbody: {
45+
tr: {
46+
verticalAlign: "top",
47+
_hover: {
48+
/**
49+
* Override specificity when hovering
50+
* over even rows in 'striped' variant.
51+
*/
52+
bg: $bgColor.reference,
53+
},
54+
},
55+
},
56+
})
57+
)
58+
59+
const variantMinimalStriped = definePartsStyle({
60+
tbody: {
61+
tr: {
62+
_even: {
63+
bg: $bgColor.reference,
64+
},
65+
},
66+
},
67+
})
68+
69+
const variantSimpleStriped = definePartsStyle({
70+
...variantMinimalStriped,
71+
thead: {
72+
bg: $bgColor.reference,
73+
},
74+
})
75+
76+
const variantSimple = definePartsStyle({
77+
thead: {
78+
bg: $bgColor.reference,
79+
},
80+
})
81+
82+
export const Table = defineMultiStyleConfig({
83+
baseStyle,
84+
variants: {
85+
minimal: {},
86+
"minimal-striped": variantMinimalStriped,
87+
simple: variantSimple,
88+
"simple-striped": variantSimpleStriped,
89+
},
90+
defaultProps: {
91+
variant: "simple",
92+
},
93+
})

src/@chakra-ui/gatsby-plugin/components/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Modal } from "./Modal"
88
import { Checkbox } from "./Checkbox"
99
import { Progress } from "./Progress"
1010
import { Tabs } from "./Tabs"
11+
import { Table } from "./Table"
1112
import { Radio } from "./Radio"
1213
import { Select } from "./Select"
1314
import { Switch } from "./Switch"
@@ -24,7 +25,6 @@ import {
2425
headingDefaultTheme,
2526
menuDefaultTheme,
2627
spinnerDefaultTheme,
27-
tableDefaultTheme,
2828
} from "./components.utils"
2929

3030
export default {
@@ -51,7 +51,7 @@ export default {
5151
Select,
5252
Spinner: spinnerDefaultTheme,
5353
Switch,
54-
Table: tableDefaultTheme,
54+
Table,
5555
Tabs,
5656
Tag,
5757
}

src/@chakra-ui/gatsby-plugin/semanticTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const semanticTokens = {
6060
base: { _light: "white", _dark: "gray.700" },
6161
highlight: { _light: "gray.100", _dark: "gray.900" },
6262
},
63-
disabled: { _light: "gray.300", _dark: "gray.500" },
63+
disabled: { _light: "gray.400", _dark: "gray.500" },
6464
// ! Deprecating neutral
6565
neutral: { _light: "white", _dark: "gray.900" },
6666

Loading
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import * as React from "react"
2+
import { Meta, StoryObj } from "@storybook/react"
3+
import BreadcrumbsComponent from "."
4+
5+
type BreadcumbsType = typeof BreadcrumbsComponent
6+
7+
const meta: Meta<BreadcumbsType> = {
8+
title: "Molecules / Navigation / Breadcrumbs",
9+
component: BreadcrumbsComponent,
10+
}
11+
12+
export default meta
13+
14+
type Story = StoryObj<typeof meta>
15+
16+
export const Breadcrumbs: Story = {
17+
render: () => (
18+
<>
19+
<BreadcrumbsComponent slug="/en/staking/" />
20+
<BreadcrumbsComponent slug="/en/staking/solo/" />
21+
<BreadcrumbsComponent slug="/en/roadmap/merge/issuance/" />
22+
</>
23+
),
24+
}

src/components/Breadcrumbs.tsx renamed to src/components/Breadcrumbs/index.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
BreadcrumbProps,
88
} from "@chakra-ui/react"
99

10-
import Link from "./Link"
10+
import Link from "../Link"
1111

1212
export interface IProps extends BreadcrumbProps {
1313
slug: string
@@ -73,10 +73,10 @@ const Breadcrumbs: React.FC<IProps> = ({
7373
position="relative"
7474
zIndex="1"
7575
mb={8}
76+
spacing="2.5"
7677
listProps={{
7778
m: 0,
78-
lineHeight: 1,
79-
rowGap: 1.5,
79+
lineHeight: 1.6,
8080
flexWrap: "wrap",
8181
}}
8282
{...restProps}
@@ -87,10 +87,8 @@ const Breadcrumbs: React.FC<IProps> = ({
8787
<BreadcrumbItem
8888
key={idx}
8989
isCurrentPage={isCurrentPage}
90-
color="textTableOfContents"
91-
fontSize="sm"
90+
color="body.medium"
9291
letterSpacing="wider"
93-
lineHeight="140%"
9492
m={0}
9593
>
9694
<BreadcrumbLink
@@ -99,6 +97,15 @@ const Breadcrumbs: React.FC<IProps> = ({
9997
isPartiallyActive={isCurrentPage}
10098
_hover={{ color: "primary.base", textDecor: "none" }}
10199
_active={{ color: "primary.base" }}
100+
sx={{
101+
/*
102+
* Redundancy to ensure styling on the active
103+
* link is applied.
104+
*/
105+
'&[aria-current="page"]': {
106+
color: "primary.base",
107+
},
108+
}}
102109
>
103110
{crumb.text.toUpperCase()}
104111
</BreadcrumbLink>

0 commit comments

Comments
 (0)