Skip to content

Commit

Permalink
fix: button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyaaa committed Apr 24, 2024
1 parent 2d9d25d commit 14b1e93
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/ui/button/button.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export default function Button(props: ButtonProps) {
onMouseEnter: (event) => props.onHoverStart?.(event),
onMouseLeave: (event) => props.onHoverEnd?.(event),
disabled: props.disabled,
style: state.getVars(),
...props.domAttributes,
}}
>
Expand Down
7 changes: 7 additions & 0 deletions src/ui/noble/noble-button.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ export default function NobleButton(props: NobleButtonProps) {
borderRadius: "$base",
fontSize: "$sm",
},
md: {
height: "70px",
px: "$10",
py: "$10",
borderRadius: "$base",
fontSize: "$md",
},
lg: {
height: "$17",
width: "$full",
Expand Down
3 changes: 1 addition & 2 deletions src/ui/noble/noble.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style, styleVariants, keyframes } from "@vanilla-extract/css";
import { style, keyframes } from "@vanilla-extract/css";
import { themeVars } from "../../styles/themes.css";

const rotate = keyframes({
Expand All @@ -20,7 +20,6 @@ export const walletImgContainer = style({
selectors: {
"&[data-disabled='true']::after": {
position: "absolute",
borderRadius: "100%",
content: '""',
top: 0,
bottom: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/noble/noble.types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type BaseButtonProps = Omit<
>;

export type NobleButtonVariant = "text" | "solid" | "outlined" | "tag";
export type NobleButtonSize = "xs" | "sm" | "lg" | "xl";
export type NobleButtonSize = "xs" | "sm" | "md" | "lg" | "xl";

export interface NobleButtonProps extends BaseButtonProps {
color?: BoxProps["color"];
Expand Down

0 comments on commit 14b1e93

Please sign in to comment.