Skip to content

Commit 692cedf

Browse files
authored
[TOOL-4987] SDK: Restore CSS resets, remove biome rules for sorting attributes and properties (#7567)
1 parent e1f4901 commit 692cedf

File tree

13 files changed

+20
-2
lines changed

13 files changed

+20
-2
lines changed

.changeset/hip-tips-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Restore CSS resets on react components

biome.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"actions": {
55
"source": {
66
"organizeImports": "on",
7-
"useSortedAttributes": "on",
8-
"useSortedKeys": "on"
7+
"useSortedAttributes": "off",
8+
"useSortedKeys": "off"
99
}
1010
},
1111
"enabled": true

packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ const WalletInfoButton = /* @__PURE__ */ StyledButton((_) => {
11531153
transition: "background 250ms ease",
11541154
},
11551155
alignItems: "center",
1156+
all: "unset",
11561157
animation: `${fadeInAnimation} 300ms ease`,
11571158
background: theme.colors.connectedButtonBg,
11581159
border: `1px solid ${theme.colors.borderColor}`,

packages/thirdweb/src/react/web/ui/ConnectWallet/MenuButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const MenuButton = /* @__PURE__ */ StyledButton((_) => {
2525
cursor: "not-allowed",
2626
},
2727
alignItems: "center",
28+
all: "unset",
2829
backgroundColor: "transparent",
2930
borderRadius: radius.md,
3031
// border: `1px solid ${theme.colors.borderColor}`,

packages/thirdweb/src/react/web/ui/ConnectWallet/NetworkSelector.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ export const TabButton = /* @__PURE__ */ (() =>
739739
background: theme.colors.secondaryButtonBg,
740740
color: theme.colors.primaryText,
741741
},
742+
all: "unset",
742743
borderRadius: radius.lg,
743744
color: theme.colors.secondaryText,
744745
cursor: "pointer",
@@ -784,6 +785,7 @@ export const NetworkButton = /* @__PURE__ */ StyledButton((_) => {
784785
background: theme.colors.secondaryButtonBg,
785786
},
786787
alignItems: "center",
788+
all: "unset",
787789
borderRadius: radius.md,
788790
boxSizing: "border-box",
789791
color: theme.colors.primaryText,

packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const WalletButtonEl = /* @__PURE__ */ StyledButton((_) => {
102102
'&[data-active="true"]': {
103103
backgroundColor: theme.colors.tertiaryBg,
104104
},
105+
all: "unset",
105106
alignItems: "center",
106107
borderRadius: radius.md,
107108
boxSizing: "border-box",

packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ const ShowAllWalletsIcon = /* @__PURE__ */ StyledDiv(() => {
720720
});
721721

722722
const WalletList = /* @__PURE__ */ StyledUl({
723+
all: "unset",
723724
boxSizing: "border-box",
724725
display: "flex",
725726
flex: 1,

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/ReceiveFunds.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const WalletAddressContainer = /* @__PURE__ */ StyledButton((_) => {
8888
"&:hover": {
8989
borderColor: theme.colors.accentText,
9090
},
91+
all: "unset",
9192
border: `1px solid ${theme.colors.borderColor}`,
9293
borderRadius: radius.md,
9394
boxSizing: "border-box",

packages/thirdweb/src/react/web/ui/TransactionButton/DepositScreen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ const WalletAddressContainer = /* @__PURE__ */ StyledButton((_) => {
286286
"&:hover": {
287287
borderColor: theme.colors.accentText,
288288
},
289+
all: "unset",
289290
border: `1px solid ${theme.colors.borderColor}`,
290291
borderRadius: `0 0 ${radius.md} ${radius.md}`,
291292
boxSizing: "border-box",

packages/thirdweb/src/react/web/ui/components/buttons.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
3838
cursor: "not-allowed",
3939
},
4040
alignItems: "center",
41+
all: "unset",
4142
background: (() => {
4243
if (props.bg) {
4344
return theme.colors[props.bg];
@@ -151,6 +152,7 @@ export const IconButton = /* @__PURE__ */ StyledButton((_) => {
151152
cursor: "not-allowed",
152153
},
153154
alignItems: "center",
155+
all: "unset",
154156
borderRadius: radius.sm,
155157
color: theme.colors.secondaryIconColor,
156158
cursor: "pointer",

0 commit comments

Comments
 (0)