Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/hip-tips-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Restore CSS resets on react components
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"actions": {
"source": {
"organizeImports": "on",
"useSortedAttributes": "on",
"useSortedKeys": "on"
"useSortedAttributes": "off",
"useSortedKeys": "off"
}
},
"enabled": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,7 @@ const WalletInfoButton = /* @__PURE__ */ StyledButton((_) => {
transition: "background 250ms ease",
},
alignItems: "center",
all: "unset",
animation: `${fadeInAnimation} 300ms ease`,
background: theme.colors.connectedButtonBg,
border: `1px solid ${theme.colors.borderColor}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const MenuButton = /* @__PURE__ */ StyledButton((_) => {
cursor: "not-allowed",
},
alignItems: "center",
all: "unset",
backgroundColor: "transparent",
borderRadius: radius.md,
// border: `1px solid ${theme.colors.borderColor}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ export const TabButton = /* @__PURE__ */ (() =>
background: theme.colors.secondaryButtonBg,
color: theme.colors.primaryText,
},
all: "unset",
borderRadius: radius.lg,
color: theme.colors.secondaryText,
cursor: "pointer",
Expand Down Expand Up @@ -784,6 +785,7 @@ export const NetworkButton = /* @__PURE__ */ StyledButton((_) => {
background: theme.colors.secondaryButtonBg,
},
alignItems: "center",
all: "unset",
borderRadius: radius.md,
boxSizing: "border-box",
color: theme.colors.primaryText,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
'&[data-active="true"]': {
backgroundColor: theme.colors.tertiaryBg,
},
all: "unset",

Check warning on line 105 in packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx

View check run for this annotation

Codecov / codecov/patch

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

Added line #L105 was not covered by tests
alignItems: "center",
borderRadius: radius.md,
boxSizing: "border-box",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ const ShowAllWalletsIcon = /* @__PURE__ */ StyledDiv(() => {
});

const WalletList = /* @__PURE__ */ StyledUl({
all: "unset",
boxSizing: "border-box",
display: "flex",
flex: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const WalletAddressContainer = /* @__PURE__ */ StyledButton((_) => {
"&:hover": {
borderColor: theme.colors.accentText,
},
all: "unset",
border: `1px solid ${theme.colors.borderColor}`,
borderRadius: radius.md,
boxSizing: "border-box",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
"&:hover": {
borderColor: theme.colors.accentText,
},
all: "unset",

Check warning on line 289 in packages/thirdweb/src/react/web/ui/TransactionButton/DepositScreen.tsx

View check run for this annotation

Codecov / codecov/patch

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

Added line #L289 was not covered by tests
border: `1px solid ${theme.colors.borderColor}`,
borderRadius: `0 0 ${radius.md} ${radius.md}`,
boxSizing: "border-box",
Expand Down
2 changes: 2 additions & 0 deletions packages/thirdweb/src/react/web/ui/components/buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
cursor: "not-allowed",
},
alignItems: "center",
all: "unset",
background: (() => {
if (props.bg) {
return theme.colors[props.bg];
Expand Down Expand Up @@ -151,6 +152,7 @@ export const IconButton = /* @__PURE__ */ StyledButton((_) => {
cursor: "not-allowed",
},
alignItems: "center",
all: "unset",
borderRadius: radius.sm,
color: theme.colors.secondaryIconColor,
cursor: "pointer",
Expand Down
1 change: 1 addition & 0 deletions packages/thirdweb/src/react/web/ui/components/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const Link = /* @__PURE__ */ StyledAnchor<LinkProps>((p) => {
color: theme.colors[p.hoverColor || "primaryText"],
textDecoration: "none",
},
all: "unset",
color: theme.colors[p.color || "accentText"],
cursor: "pointer",
display: p.inline ? "inline" : "block",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
textDecoration: "none",
},
alignItems: "center",
all: "unset",

Check warning on line 221 in packages/thirdweb/src/react/web/wallets/shared/GetStartedScreen.tsx

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/wallets/shared/GetStartedScreen.tsx#L221

Added line #L221 was not covered by tests
background: theme.colors.secondaryButtonBg,
borderRadius: radius.sm,
boxSizing: "border-box",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@
"&:hover": {
color: theme.colors.primaryText,
},
all: "unset",

Check warning on line 348 in packages/thirdweb/src/react/web/wallets/shared/OTPLoginUI.tsx

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/wallets/shared/OTPLoginUI.tsx#L348

Added line #L348 was not covered by tests
color: theme.colors.accentText,
cursor: "pointer",
fontSize: fontSize.sm,
Expand Down
Loading