Skip to content

Commit ba737a4

Browse files
authored
[core] : feature - Add background styling variable to the Action Required modal (#1024)
* Add variable to adjust color of background of the Action Required Modal * Removed unused styling classes creating warnings in build * Bump version to test in staging
1 parent 9a2de0a commit ba737a4

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

packages/core/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,9 @@ The Onboard styles can customized via [CSS variables](https://developer.mozilla.
508508
--onboard-modal-backdrop
509509
--onboard-modal-box-shadow
510510

511+
/* CUSTOMIZE THE ACTION REQUIRED MODAL */
512+
--onboard-action-required-modal-background
513+
511514
/* FONTS */
512515
--onboard-font-family-normal: Sofia Pro;
513516
--onboard-font-family-semibold: Sofia Pro Semibold;

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.2.9-alpha.4",
3+
"version": "2.2.9-alpha.5",
44
"scripts": {
55
"build": "rollup -c",
66
"dev": "rollup -c -w",

packages/core/src/views/account-center/Maximized.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@
134134
line-height: var(--onboard-font-line-height-3, var(--font-line-height-3));
135135
}
136136
137-
.caret {
138-
width: 16px;
139-
}
140-
141137
.app-info-container {
142138
background: var(--onboard-white, var(--white));
143139
border-radius: 16px;

packages/core/src/views/account-center/Minimized.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@
9898
margin-right: 4px;
9999
}
100100
101-
.caret {
102-
width: 24px;
103-
}
104-
105101
.container {
106102
border: 1px solid transparent;
107103
border-radius: 16px;

packages/core/src/views/connect/ActionRequired.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
font-family: var(--onboard-font-family-normal, var(--font-family-normal));
1919
font-size: var(--onboard-font-size-5, var(--font-size-5));
2020
line-height: 24px;
21+
background: var(
22+
--onboard-action-required-modal-background,
23+
var(--onboard-white, var(--white))
24+
);
2125
}
2226
2327
.icon-container {

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/react",
3-
"version": "2.1.7-alpha.5",
3+
"version": "2.1.7-alpha.6",
44
"description": "Collection of React Hooks for web3-onboard",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",
@@ -21,7 +21,7 @@
2121
"typescript": "^4.5.5"
2222
},
2323
"dependencies": {
24-
"@web3-onboard/core": "^2.2.9-alpha.4",
24+
"@web3-onboard/core": "^2.2.9-alpha.5",
2525
"@web3-onboard/common": "^2.1.0-alpha.1"
2626
},
2727
"peerDependencies": {

0 commit comments

Comments
 (0)