Skip to content

Commit 7555fe3

Browse files
authored
Merge pull request #10991 from ethereum/staging
Deploy v7.19.2
2 parents 48bb7ef + 0b5acf7 commit 7555fe3

File tree

110 files changed

+1286
-947
lines changed

Some content is hidden

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

110 files changed

+1286
-947
lines changed

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10404,6 +10404,24 @@
1040410404
"content",
1040510405
"bug"
1040610406
]
10407+
},
10408+
{
10409+
"login": "gunal-123",
10410+
"name": "Gunal",
10411+
"avatar_url": "https://avatars.githubusercontent.com/u/103403219?v=4",
10412+
"profile": "https://github.com/gunal-123",
10413+
"contributions": [
10414+
"content"
10415+
]
10416+
},
10417+
{
10418+
"login": "LadyDhaga",
10419+
"name": "chinaman123",
10420+
"avatar_url": "https://avatars.githubusercontent.com/u/106376368?v=4",
10421+
"profile": "https://github.com/LadyDhaga",
10422+
"contributions": [
10423+
"ideas"
10424+
]
1040710425
}
1040810426
],
1040910427
"contributorsPerLine": 7,

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
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>
16271627
<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>
16281628
<td align="center" valign="top" width="14.28%"><a href="https://github.com/woseK"><img src="https://avatars.githubusercontent.com/u/110729731?v=4?s=100" width="100px;" alt="woseK"/><br /><sub><b>woseK</b></sub></a><br /><a href="#content-woseK" title="Content">🖋</a> <a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AwoseK" title="Bug reports">🐛</a></td>
1629+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/gunal-123"><img src="https://avatars.githubusercontent.com/u/103403219?v=4?s=100" width="100px;" alt="Gunal"/><br /><sub><b>Gunal</b></sub></a><br /><a href="#content-gunal-123" title="Content">🖋</a></td>
1630+
</tr>
1631+
<tr>
1632+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/LadyDhaga"><img src="https://avatars.githubusercontent.com/u/106376368?v=4?s=100" width="100px;" alt="chinaman123"/><br /><sub><b>chinaman123</b></sub></a><br /><a href="#ideas-LadyDhaga" title="Ideas, Planning, & Feedback">🤔</a></td>
16291633
</tr>
16301634
</tbody>
16311635
</table>

gatsby-browser.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
import Prism from "prism-react-renderer/prism"
88
;(typeof global !== "undefined" ? global : window).Prism = Prism
99

10-
// FormatJS Polyfill imports - Used for intl number formatting
11-
import "@formatjs/intl-locale/polyfill"
12-
import "@formatjs/intl-numberformat/polyfill"
13-
import "@formatjs/intl-numberformat/locale-data/en"
14-
1510
// Default languages included:
1611
// https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js
1712
require("prismjs/components/prism-solidity")

gatsby-ssr.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,5 @@ export const onRenderBody = ({ setHeadComponents }: RenderBodyArgs) => {
1818
crossOrigin="anonymous"
1919
key="interFont"
2020
/>,
21-
<link
22-
rel="preload"
23-
href="/fonts/Inter-Regular.woff"
24-
as="font"
25-
type="font/woff"
26-
crossOrigin="anonymous"
27-
key="interFont"
28-
/>,
29-
<link
30-
rel="preload"
31-
href="/fonts/IBMPlexMono-Regular.woff2"
32-
as="font"
33-
type="font/woff2"
34-
crossOrigin="anonymous"
35-
key="interFont"
36-
/>,
3721
])
3822
}

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "7.19.1",
3+
"version": "7.19.2",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "[email protected]:ethereum/ethereum-org-website.git",
@@ -15,8 +15,6 @@
1515
"@docsearch/react": "^3.3.3",
1616
"@emotion/react": "^11.9.3",
1717
"@emotion/styled": "^11.9.3",
18-
"@formatjs/intl-locale": "^2.4.14",
19-
"@formatjs/intl-numberformat": "^6.1.4",
2018
"@mdx-js/mdx": "^1.6.5",
2119
"@mdx-js/react": "^1.6.5",
2220
"algoliasearch": "^4.3.0",

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

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@ import { defineStyle, defineStyleConfig } from "@chakra-ui/react"
1010
*/
1111
const ICON_SELECTOR = "& svg"
1212

13-
const getBaseColor = (isSecondary: boolean) =>
14-
!isSecondary ? "primary.base" : "body.base"
15-
16-
const baseStyle = defineStyle((props) => ({
13+
const baseStyle = defineStyle({
1714
borderRadius: "base",
1815
border: "1px",
19-
color: getBaseColor(props.isSecondary),
16+
color: "primary.base",
2017
lineHeight: "1.6",
2118
transitionProperty: "common",
2219
transitionDuration: "normal",
2320
whiteSpace: "normal",
21+
p: "unset",
2422
_focusVisible: {
2523
outline: "4px solid",
2624
outlineColor: "primary.hover",
@@ -33,7 +31,16 @@ const baseStyle = defineStyle((props) => ({
3331
_hover: {
3432
color: "primary.hover",
3533
},
36-
}))
34+
"&[data-secondary='true']": {
35+
color: "body.base",
36+
},
37+
"&.chakra-link": {
38+
textDecoration: "none",
39+
_hover: {
40+
textDecoration: "none",
41+
},
42+
},
43+
})
3744

3845
const variantSolid = defineStyle({
3946
color: "background.base",
@@ -68,7 +75,6 @@ const variantGhost = {
6875

6976
const variantLink = defineStyle({
7077
borderColor: "transparent",
71-
color: "primary.base",
7278
fontWeight: 700,
7379
textDecor: "underline",
7480
py: 0,
@@ -78,47 +84,29 @@ const variantLink = defineStyle({
7884
},
7985
})
8086

81-
/**
82-
* @deprecated This is no longer needed. Styling for just the icon is not
83-
* unique compared to the variants used for text (as of the new DS)
84-
*/
85-
const variantIcon = defineStyle({
86-
appearance: "none",
87-
background: "inherit",
88-
padding: "initial",
89-
border: 0,
90-
color: "inherit",
91-
boxShadow: "none",
92-
_hover: {
93-
color: "primary.base",
94-
boxShadow: "none",
95-
},
96-
})
97-
9887
const sizes = {
99-
md: {
100-
py: "2 !important",
101-
px: "4 !important",
88+
md: defineStyle({
89+
py: "2",
90+
px: "4",
10291
[ICON_SELECTOR]: {
10392
fontSize: "2xl",
10493
},
105-
},
106-
sm: {
94+
}),
95+
sm: defineStyle({
10796
fontSize: "xs",
108-
py: "1.5 !important",
109-
px: "2 !important",
97+
py: "1.5",
98+
px: "2",
11099
[ICON_SELECTOR]: {
111100
fontSize: "md",
112101
},
113-
},
102+
}),
114103
}
115104

116105
const variants = {
117106
solid: variantSolid,
118107
outline: variantOutline,
119108
ghost: variantGhost,
120109
link: variantLink,
121-
icon: variantIcon,
122110
}
123111

124112
export const Button = defineStyleConfig({

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

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@ import { defineMergeStyles, linkDefaultTheme } from "./components.utils"
44
export const Link = defineStyleConfig({
55
baseStyle: defineMergeStyles(linkDefaultTheme.baseStyle, {
66
color: "primary.base",
7-
textDecoration: "underline",
8-
_focus: {
9-
boxShadow: "none",
10-
},
7+
textDecor: "underline",
8+
textUnderlineOffset: "3px",
119
_focusVisible: {
1210
boxShadow: "none",
13-
outline: "auto",
11+
outline: "2px solid",
12+
outlineColor: "primary.hover",
13+
outlineOffset: "2px",
14+
borderRadius: "sm",
15+
},
16+
_hover: {
17+
color: "primary.hover",
18+
},
19+
"&[data-inline-link]": {
20+
_visited: {
21+
color: "primary.visited",
22+
},
1423
},
1524
}),
1625
})
-24.8 KB
Binary file not shown.
Binary file not shown.
140 KB
Loading

0 commit comments

Comments
 (0)