Skip to content

Commit

Permalink
updates app tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed Jun 9, 2024
1 parent ff8c3fa commit 8e21105
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions scripts/preview/Figma.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,20 @@ export const ButtonStory: StoryObj<typeof Button> = {
args: {
children: "Hello!",
isDisabled: false,
size: "md",
variant: "default",
size: "medium",
variant: "primary",
},
argTypes: {
children: {
control: { type: "text" },
},
size: {
control: { type: "select" },
options: ["sm", "md"],
options: ["small", "medium"],
},
variant: {
control: { type: "select" },
options: ["default", "secondary", "stroke", "subtle"],
options: ["primary", "neutral", "subtle"],
},
},
render: ({ children, ...props }) => (
Expand Down Expand Up @@ -289,17 +289,17 @@ export const FieldStory: StoryObj<{
export const IconButtonStory: StoryObj<typeof IconButton> = {
args: {
isDisabled: false,
size: "md",
variant: "default",
size: "medium",
variant: "primary",
},
argTypes: {
size: {
control: { type: "select" },
options: ["sm", "md"],
options: ["small", "medium"],
},
variant: {
control: { type: "select" },
options: ["default", "secondary", "stroke", "subtle"],
options: ["primary", "neutral", "subtle"],
},
},
render: ({ children, ...props }) => (
Expand Down
2 changes: 1 addition & 1 deletion src/stories/ui/components/Cards.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const Default: StoryObj<
paragraph, or even in a list.
</Text>
<ButtonGroup align="start">
<Button variant="secondary">Hello there!</Button>
<Button variant="neutral">Hello there!</Button>
</ButtonGroup>
</Card>
),
Expand Down
4 changes: 2 additions & 2 deletions src/stories/ui/primitives/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ export const Other: Story = {
</TableCell>
<TableCell>
<Flex alignPrimary="end" alignSecondary="center">
<Button size="sm" variant="stroke">
<Button size="small" variant="neutral">
View
</Button>
<IconButton size="sm" aria-label="Trash icon">
<IconButton size="small" aria-label="Trash icon">
<IconTrash />
</IconButton>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/Cards/Cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function ProductInfoCard({
<TextHeading>{heading}</TextHeading>
<TextTitlePage>${price}</TextTitlePage>
<ButtonGroup align="start">
<Button variant="secondary" onPress={onAction}>
<Button variant="neutral" onPress={onAction}>
{action}
</Button>
</ButtonGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/ui/components/Headers/Headers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export function HeaderAuth() {
const userButtons = (
<>
<Button
variant="secondary"
size="sm"
variant="subtle"
size="small"
onPress={() =>
login({
avatar: "https://picsum.photos/300",
Expand All @@ -47,7 +47,7 @@ export function HeaderAuth() {
Log in
</Button>
<Button
size="sm"
size="small"
onPress={() =>
login({
avatar: "https://picsum.photos/300",
Expand Down Expand Up @@ -149,7 +149,7 @@ export function HeaderAuth() {
</FlexItem>
<FlexItem>
<Flex alignPrimary="center">
<Button variant="subtle" size="sm" onPress={logout}>
<Button variant="subtle" size="small" onPress={logout}>
Log out
</Button>
</Flex>
Expand Down
4 changes: 2 additions & 2 deletions src/ui/components/Headers/headers.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
}

.header .navigation-dialog {
.navigation-dialog {
border: none;
border-radius: var(--sds-size-radius-none);
display: flex;
Expand All @@ -62,7 +62,7 @@
}
}

.header .navigation-dialog-close {
.navigation-dialog-close {
position: absolute;
right: var(--sds-size-padding-md);
top: var(--sds-size-padding-md);
Expand Down
2 changes: 1 addition & 1 deletion src/ui/primitives/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function PaginationPage({
href={href}
aria-label={`Page ${children}`}
aria-current={current ? "page" : undefined}
variant={current ? "default" : "subtle"}
variant={current ? "primary" : "subtle"}
className={clsx()}
>
<span className="">{children}</span>
Expand Down

0 comments on commit 8e21105

Please sign in to comment.