Skip to content

Commit

Permalink
Chore: EmptyState Tweaks token name. (#125)
Browse files Browse the repository at this point in the history
* Tweaks token name and space

* Adds CHANGELOG entry

* Update src/components/cart/EmptyCart/EmptyCart.stories.mdx

Co-authored-by: Filipe W. Lima <[email protected]>

* Update src/components/sections/ProductGallery/EmptyGallery.stories.mdx

Co-authored-by: Filipe W. Lima <[email protected]>

* Trigger CI

Co-authored-by: Filipe W. Lima <[email protected]>
  • Loading branch information
eduardoformiga and filipewl authored Jun 15, 2022
1 parent 7405d17 commit c829bbe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Tweaks `EmptyState` token name ([#125](https://github.com/vtex-sites/nextjs.store/pull/125))
- Storybook's version from 6.4.20 to 6.5.9 ([#120](https://github.com/vtex-sites/nextjs.store/pull/120))
- Unifies `Link` component usage by adding support for both external and client-side links ([#117](https://github.com/vtex-sites/nextjs.store/pull/117))

Expand Down
5 changes: 1 addition & 4 deletions src/components/cart/EmptyCart/EmptyCart.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,5 @@ An implementation of the `EmptyState` that represents the Cart with no items.
value="var(--fs-color-disabled-text)"
isColor
/>
<TokenRow
token="--fs-empty-state-title-text-size"
value="var(--fs-text-size-3)"
/>
<TokenRow token="--fs-empty-state-title-size" value="var(--fs-text-size-lead)" />
</TokenTable>
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ An implementation of the `EmptyState` that represents a Gallery with no items.
value="var(--fs-color-disabled-text)"
isColor
/>
<TokenRow
token="--fs-empty-state-title-text-size"
value="var(--fs-text-size-3)"
/>
<TokenRow token="--fs-empty-state-title-size" value="var(--fs-text-size-lead)" />
</TokenTable>

### Link
Expand Down
8 changes: 4 additions & 4 deletions src/components/ui/EmptyState/empty-state.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
--fs-empty-state-bkg-color : var(--fs-color-neutral-bkg);

// Title
--fs-empty-state-title-margin-bottom : var(--fs-spacing-2);
--fs-empty-state-title-color : var(--fs-color-disabled-text);
--fs-empty-state-title-text-size : var(--fs-text-size-lead);
--fs-empty-state-title-margin-bottom : var(--fs-spacing-2);
--fs-empty-state-title-color : var(--fs-color-disabled-text);
--fs-empty-state-title-size : var(--fs-text-size-lead);

// Link
--fs-empty-state-link-min-width : 11.875rem;
Expand Down Expand Up @@ -44,7 +44,7 @@
color: var(--fs-empty-state-title-color);

p {
font-size: var(--fs-empty-state-title-text-size);
font-size: var(--fs-empty-state-title-size);
text-align: center;
}
}
Expand Down

1 comment on commit c829bbe

@vercel
Copy link

@vercel vercel bot commented on c829bbe Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.