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: {
11531153const WalletInfoButton = /* @__PURE__ */ StyledButton ( ( _ ) => {
11541154 const theme = useCustomTheme ( ) ;
11551155 return {
1156+ all : "unset" ,
11561157 "&:hover" : {
11571158 background : theme . colors . connectedButtonBgHover ,
11581159 transition : "background 250ms ease" ,
11591160 } ,
11601161 alignItems : "center" ,
1161- all : "unset" ,
11621162 animation : `${ fadeInAnimation } 300ms ease` ,
11631163 background : theme . colors . connectedButtonBg ,
11641164 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";
99export const MenuButton = /* @__PURE__ */ StyledButton ( ( _ ) => {
1010 const theme = useCustomTheme ( ) ;
1111 return {
12+ all : "unset" ,
1213 "&:hover" : {
1314 backgroundColor : theme . colors . tertiaryBg ,
1415 svg : {
@@ -24,8 +25,8 @@ export const MenuButton = /* @__PURE__ */ StyledButton((_) => {
2425 "&[disabled]" : {
2526 cursor : "not-allowed" ,
2627 } ,
28+
2729 alignItems : "center" ,
28- all : "unset" ,
2930 backgroundColor : "transparent" ,
3031 borderRadius : radius . md ,
3132 // border: `1px solid ${theme.colors.borderColor}`,
Original file line number Diff line number Diff line change @@ -735,11 +735,11 @@ export const TabButton = /* @__PURE__ */ (() =>
735735 styled . button ( ( _ ) => {
736736 const theme = useCustomTheme ( ) ;
737737 return {
738+ all : "unset" ,
738739 "&[data-active='true']" : {
739740 background : theme . colors . secondaryButtonBg ,
740741 color : theme . colors . primaryText ,
741742 } ,
742- all : "unset" ,
743743 borderRadius : radius . lg ,
744744 color : theme . colors . secondaryText ,
745745 cursor : "pointer" ,
@@ -784,8 +784,8 @@ export const NetworkButton = /* @__PURE__ */ StyledButton((_) => {
784784 "&:hover" : {
785785 background : theme . colors . secondaryButtonBg ,
786786 } ,
787- alignItems : "center" ,
788787 all : "unset" ,
788+ alignItems : "center" ,
789789 borderRadius : radius . md ,
790790 boxSizing : "border-box" ,
791791 color : theme . colors . primaryText ,
Original file line number Diff line number Diff line change @@ -95,14 +95,15 @@ export function WalletEntryButton(props: {
9595export const WalletButtonEl = /* @__PURE__ */ StyledButton ( ( _ ) => {
9696 const theme = useCustomTheme ( ) ;
9797 return {
98+ all : "unset" ,
9899 "&:hover" : {
99100 backgroundColor : theme . colors . tertiaryBg ,
100101 transform : "scale(1.01)" ,
101102 } ,
102103 '&[data-active="true"]' : {
103104 backgroundColor : theme . colors . tertiaryBg ,
104105 } ,
105- all : "unset" ,
106+
106107 alignItems : "center" ,
107108 borderRadius : radius . md ,
108109 boxSizing : "border-box" ,
Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ export function ReceiveFunds(props: {
8585const WalletAddressContainer = /* @__PURE__ */ StyledButton ( ( _ ) => {
8686 const theme = useCustomTheme ( ) ;
8787 return {
88+ all : "unset" ,
8889 "&:hover" : {
8990 borderColor : theme . colors . accentText ,
9091 } ,
91- all : "unset" ,
9292 border : `1px solid ${ theme . colors . borderColor } ` ,
9393 borderRadius : radius . md ,
9494 boxSizing : "border-box" ,
Original file line number Diff line number Diff line change @@ -283,10 +283,10 @@ export function DepositScreen(props: {
283283const WalletAddressContainer = /* @__PURE__ */ StyledButton ( ( _ ) => {
284284 const theme = useCustomTheme ( ) ;
285285 return {
286+ all : "unset" ,
286287 "&:hover" : {
287288 borderColor : theme . colors . accentText ,
288289 } ,
289- all : "unset" ,
290290 border : `1px solid ${ theme . colors . borderColor } ` ,
291291 borderRadius : `0 0 ${ radius . md } ${ radius . md } ` ,
292292 boxSizing : "border-box" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
2222 return { } ;
2323 }
2424 return {
25+ all : "unset" ,
2526 "&:active" : {
2627 transform : "translateY(1px)" ,
2728 } ,
@@ -38,7 +39,6 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
3839 cursor : "not-allowed" ,
3940 } ,
4041 alignItems : "center" ,
41- all : "unset" ,
4242 background : ( ( ) => {
4343 if ( props . bg ) {
4444 return theme . colors [ props . bg ] ;
@@ -144,6 +144,7 @@ export const ButtonLink = /* @__PURE__ */ (() => Button.withComponent("a"))();
144144export const IconButton = /* @__PURE__ */ StyledButton ( ( _ ) => {
145145 const theme = useCustomTheme ( ) ;
146146 return {
147+ all : "unset" ,
147148 "&:hover" : {
148149 background : theme . colors . secondaryIconHoverBg ,
149150 color : theme . colors . secondaryIconHoverColor ,
@@ -152,7 +153,6 @@ export const IconButton = /* @__PURE__ */ StyledButton((_) => {
152153 cursor : "not-allowed" ,
153154 } ,
154155 alignItems : "center" ,
155- all : "unset" ,
156156 borderRadius : radius . sm ,
157157 color : theme . colors . secondaryIconColor ,
158158 cursor : "pointer" ,
Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ type LinkProps = {
4444export const Link = /* @__PURE__ */ StyledAnchor < LinkProps > ( ( p ) => {
4545 const theme = useCustomTheme ( ) ;
4646 return {
47+ all : "unset" ,
4748 "&:hover" : {
4849 color : theme . colors [ p . hoverColor || "primaryText" ] ,
4950 textDecoration : "none" ,
5051 } ,
51- all : "unset" ,
5252 color : theme . colors [ p . color || "accentText" ] ,
5353 cursor : "pointer" ,
5454 display : p . inline ? "inline" : "block" ,
Original file line number Diff line number Diff line change @@ -212,13 +212,13 @@ const InstallScanScreen: React.FC<{
212212const ButtonLink = /* @__PURE__ */ StyledButton ( ( _ ) => {
213213 const theme = useCustomTheme ( ) ;
214214 return {
215+ all : "unset" ,
215216 "&:hover" : {
216217 background : theme . colors . secondaryButtonHoverBg ,
217218 color : theme . colors . primaryText ,
218219 textDecoration : "none" ,
219220 } ,
220221 alignItems : "center" ,
221- all : "unset" ,
222222 background : theme . colors . secondaryButtonBg ,
223223 borderRadius : radius . sm ,
224224 boxSizing : "border-box" ,
You can’t perform that action at this time.
0 commit comments