Skip to content

Commit

Permalink
feat(downstate): docs + implementation for example components (#2520)
Browse files Browse the repository at this point in the history
* feat(downstate): docs + implementation for example components

* docs: update mdx

* docs: reorg, stories live within foundations

* docs: decorator for down state dimension tokens

* docs: fix mdx hierarchy console error

* fix: small iconOnly button gets min perspective

* docs: use markdown, update language

* fix: disabled, readonly checkbox doesnt have down state

* chore(button,checkbox): update package versions
  • Loading branch information
mdt2 authored and castastrophe committed Apr 26, 2024
1 parent ae7aedd commit 6a98ebd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/button/stories/button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { withDownStateDimensionCapture } from "@spectrum-css/preview/decorators"

import { html } from "lit";
import { styleMap } from "lit/directives/style-map.js";
import { when } from "lit/directives/when.js";
import { withDownStateDimensionCapture } from "../../../.storybook/decorators";

import { default as IconStories } from "@spectrum-css/icon/stories/icon.stories.js";
import { Template as Typography } from "@spectrum-css/typography/stories/template.js";
Expand All @@ -14,6 +16,7 @@ import { Template } from "./template";
export default {
title: "Components/Button",
component: "Button",
decorators: [withDownStateDimensionCapture('.spectrum-Button:not(:disabled)')],
argTypes: {
size: {
name: "Size",
Expand Down

0 comments on commit 6a98ebd

Please sign in to comment.