Skip to content

Commit

Permalink
react: fix font weights
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Dec 5, 2024
1 parent 38ef2fb commit 463f114
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ export const ConnectMethodSelectionView = ({
}}
>
<div className="tdk-space-y-1.5">
<label
className="tdk-block tdk-text-sm tdk-font-medium"
htmlFor="email"
>
<label className="tdk-block tdk-text-sm" htmlFor="email">
{t("common.emailLabel")}
</label>
<input
Expand All @@ -94,11 +91,7 @@ export const ConnectMethodSelectionView = ({
onChange={(e) => setEmail(e.target.value)}
/>
</div>
<Button
type="submit"
className="tdk-w-full tdk-font-medium"
isLoading={isLoading}
>
<Button type="submit" className="tdk-w-full" isLoading={isLoading}>
{t("connect.action")}
</Button>
</form>
Expand Down Expand Up @@ -185,7 +178,7 @@ const ConnectMethodButton = ({
<button
type="button"
className={cn(
"tdk-flex tdk-items-center tdk-justify-center tdk-bg-night-500 tdk-border tdk-border-solid tdk-border-night-400 tdk-p-3 tdk-text-xs tdk-text-silver-100 tdk-font-medium tdk-transition-colors tdk-rounded-lg",
"tdk-flex tdk-items-center tdk-justify-center tdk-bg-night-500 tdk-border tdk-border-solid tdk-border-night-400 tdk-p-3 tdk-text-xs tdk-text-silver-100 tdk-transition-colors tdk-rounded-lg",
props.disabled
? "tdk-opacity-50 tdk-cursor-not-allowed"
: "tdk-cursor-pointer hover:tdk-bg-cream hover:tdk-border-cream hover:tdk-text-night-800",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const ConnectMigrateUserView = ({
</span>
</div>
) : (
<div className="tdk-text-silver-500 tdk-font-medium">
<div className="tdk-text-silver-500">
{shortenAddress(legacyAddress ?? ZERO_ADDRESS)}
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ export const ConnectVerifyCodeView = ({
<p className="tdk-text-sm tdk-text-silver">
<Trans i18nKey="connect.verify.description" values={{ recipient }}>
We have sent a verification code to{" "}
<span className="tdk-text-silver-200 tdk-font-medium">
{recipient}
</span>
. You will be automatically logged in after entering your code.
<span className="tdk-text-silver-200">{recipient}</span>. You will
be automatically logged in after entering your code.
</Trans>
</p>
</div>
Expand Down Expand Up @@ -101,7 +99,7 @@ export const ConnectVerifyCodeView = ({
</div>
<div className="tdk-space-y-3">
<Button
className="tdk-w-full tdk-font-medium"
className="tdk-w-full"
isLoading={isLoading}
onClick={() => onConfirm(code)}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/ui/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Props = AsButtonProps | AsLinkProps;
export const Button = (props: Props) => {
const { variant = "primary", isLoading = false } = props;
const className = cn(
"tdk-rounded-lg tdk-px-4 tdk-py-1 tdk-font-medium tdk-transition-colors tdk-text-sm tdk-border tdk-border-solid tdk-min-h-9",
"tdk-rounded-lg tdk-px-4 tdk-py-1 tdk-transition-colors tdk-text-sm tdk-border tdk-border-solid tdk-min-h-9",
isLoading
? "tdk-flex tdk-items-center tdk-justify-center tdk-cursor-wait"
: "tdk-cursor-pointer",
Expand Down

0 comments on commit 463f114

Please sign in to comment.