File tree Expand file tree Collapse file tree 11 files changed +19
-12
lines changed
packages/thirdweb/src/react/web Expand file tree Collapse file tree 11 files changed +19
-12
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Fix Various alignment issues in React Components
Original file line number Diff line number Diff line change @@ -1153,12 +1153,12 @@ export function NetworkSwitcherButton(props: {
1153
1153
const WalletInfoButton = /* @__PURE__ */ StyledButton ( ( _ ) => {
1154
1154
const theme = useCustomTheme ( ) ;
1155
1155
return {
1156
+ all : "unset" ,
1156
1157
"&:hover" : {
1157
1158
background : theme . colors . connectedButtonBgHover ,
1158
1159
transition : "background 250ms ease" ,
1159
1160
} ,
1160
1161
alignItems : "center" ,
1161
- all : "unset" ,
1162
1162
animation : `${ fadeInAnimation } 300ms ease` ,
1163
1163
background : theme . colors . connectedButtonBg ,
1164
1164
border : `1px solid ${ theme . colors . borderColor } ` ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { StyledButton } from "../design-system/elements.js";
9
9
export const MenuButton = /* @__PURE__ */ StyledButton ( ( _ ) => {
10
10
const theme = useCustomTheme ( ) ;
11
11
return {
12
+ all : "unset" ,
12
13
"&:hover" : {
13
14
backgroundColor : theme . colors . tertiaryBg ,
14
15
svg : {
@@ -24,8 +25,8 @@ export const MenuButton = /* @__PURE__ */ StyledButton((_) => {
24
25
"&[disabled]" : {
25
26
cursor : "not-allowed" ,
26
27
} ,
28
+
27
29
alignItems : "center" ,
28
- all : "unset" ,
29
30
backgroundColor : "transparent" ,
30
31
borderRadius : radius . md ,
31
32
// border: `1px solid ${theme.colors.borderColor}`,
Original file line number Diff line number Diff line change @@ -735,11 +735,11 @@ export const TabButton = /* @__PURE__ */ (() =>
735
735
styled . button ( ( _ ) => {
736
736
const theme = useCustomTheme ( ) ;
737
737
return {
738
+ all : "unset" ,
738
739
"&[data-active='true']" : {
739
740
background : theme . colors . secondaryButtonBg ,
740
741
color : theme . colors . primaryText ,
741
742
} ,
742
- all : "unset" ,
743
743
borderRadius : radius . lg ,
744
744
color : theme . colors . secondaryText ,
745
745
cursor : "pointer" ,
@@ -784,8 +784,8 @@ export const NetworkButton = /* @__PURE__ */ StyledButton((_) => {
784
784
"&:hover" : {
785
785
background : theme . colors . secondaryButtonBg ,
786
786
} ,
787
- alignItems : "center" ,
788
787
all : "unset" ,
788
+ alignItems : "center" ,
789
789
borderRadius : radius . md ,
790
790
boxSizing : "border-box" ,
791
791
color : theme . colors . primaryText ,
Original file line number Diff line number Diff line change @@ -95,14 +95,15 @@ export function WalletEntryButton(props: {
95
95
export const WalletButtonEl = /* @__PURE__ */ StyledButton ( ( _ ) => {
96
96
const theme = useCustomTheme ( ) ;
97
97
return {
98
+ all : "unset" ,
98
99
"&:hover" : {
99
100
backgroundColor : theme . colors . tertiaryBg ,
100
101
transform : "scale(1.01)" ,
101
102
} ,
102
103
'&[data-active="true"]' : {
103
104
backgroundColor : theme . colors . tertiaryBg ,
104
105
} ,
105
- all : "unset" ,
106
+
106
107
alignItems : "center" ,
107
108
borderRadius : radius . md ,
108
109
boxSizing : "border-box" ,
Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ export function ReceiveFunds(props: {
85
85
const WalletAddressContainer = /* @__PURE__ */ StyledButton ( ( _ ) => {
86
86
const theme = useCustomTheme ( ) ;
87
87
return {
88
+ all : "unset" ,
88
89
"&:hover" : {
89
90
borderColor : theme . colors . accentText ,
90
91
} ,
91
- all : "unset" ,
92
92
border : `1px solid ${ theme . colors . borderColor } ` ,
93
93
borderRadius : radius . md ,
94
94
boxSizing : "border-box" ,
Original file line number Diff line number Diff line change @@ -283,10 +283,10 @@ export function DepositScreen(props: {
283
283
const WalletAddressContainer = /* @__PURE__ */ StyledButton ( ( _ ) => {
284
284
const theme = useCustomTheme ( ) ;
285
285
return {
286
+ all : "unset" ,
286
287
"&:hover" : {
287
288
borderColor : theme . colors . accentText ,
288
289
} ,
289
- all : "unset" ,
290
290
border : `1px solid ${ theme . colors . borderColor } ` ,
291
291
borderRadius : `0 0 ${ radius . md } ${ radius . md } ` ,
292
292
boxSizing : "border-box" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
22
22
return { } ;
23
23
}
24
24
return {
25
+ all : "unset" ,
25
26
"&:active" : {
26
27
transform : "translateY(1px)" ,
27
28
} ,
@@ -38,7 +39,6 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
38
39
cursor : "not-allowed" ,
39
40
} ,
40
41
alignItems : "center" ,
41
- all : "unset" ,
42
42
background : ( ( ) => {
43
43
if ( props . bg ) {
44
44
return theme . colors [ props . bg ] ;
@@ -144,6 +144,7 @@ export const ButtonLink = /* @__PURE__ */ (() => Button.withComponent("a"))();
144
144
export const IconButton = /* @__PURE__ */ StyledButton ( ( _ ) => {
145
145
const theme = useCustomTheme ( ) ;
146
146
return {
147
+ all : "unset" ,
147
148
"&:hover" : {
148
149
background : theme . colors . secondaryIconHoverBg ,
149
150
color : theme . colors . secondaryIconHoverColor ,
@@ -152,7 +153,6 @@ export const IconButton = /* @__PURE__ */ StyledButton((_) => {
152
153
cursor : "not-allowed" ,
153
154
} ,
154
155
alignItems : "center" ,
155
- all : "unset" ,
156
156
borderRadius : radius . sm ,
157
157
color : theme . colors . secondaryIconColor ,
158
158
cursor : "pointer" ,
Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ type LinkProps = {
44
44
export const Link = /* @__PURE__ */ StyledAnchor < LinkProps > ( ( p ) => {
45
45
const theme = useCustomTheme ( ) ;
46
46
return {
47
+ all : "unset" ,
47
48
"&:hover" : {
48
49
color : theme . colors [ p . hoverColor || "primaryText" ] ,
49
50
textDecoration : "none" ,
50
51
} ,
51
- all : "unset" ,
52
52
color : theme . colors [ p . color || "accentText" ] ,
53
53
cursor : "pointer" ,
54
54
display : p . inline ? "inline" : "block" ,
Original file line number Diff line number Diff line change @@ -212,13 +212,13 @@ const InstallScanScreen: React.FC<{
212
212
const ButtonLink = /* @__PURE__ */ StyledButton ( ( _ ) => {
213
213
const theme = useCustomTheme ( ) ;
214
214
return {
215
+ all : "unset" ,
215
216
"&:hover" : {
216
217
background : theme . colors . secondaryButtonHoverBg ,
217
218
color : theme . colors . primaryText ,
218
219
textDecoration : "none" ,
219
220
} ,
220
221
alignItems : "center" ,
221
- all : "unset" ,
222
222
background : theme . colors . secondaryButtonBg ,
223
223
borderRadius : radius . sm ,
224
224
boxSizing : "border-box" ,
You can’t perform that action at this time.
0 commit comments