Skip to content

Commit

Permalink
Merge pull request #1 from kickstartDS/hotfix/compact-mode
Browse files Browse the repository at this point in the history
Hotfix/compact mode
  • Loading branch information
lmestel authored Jul 2, 2021
2 parents fa4e87d + 5e17bbd commit 3600216
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { CssPropsBlock } from "@kickstartds/storybook-addon-component-tokens";

## Usage

Include your component tokens without the intial `--` prefix, the addon will apply and document this automatically.
Include your component tokens, the addon will apply and document this automatically.

```jsx
export default {
Expand Down Expand Up @@ -50,14 +50,13 @@ This monorepo uses yarn workspaces, run `yarn` at the root.

### TODO

[] Auto detect input type.
[] Look for the args of a defined component when in MDX
[] Configurable per story localstorage.
[] Configurable per story sessionstorage.
[] Better specificity when injecting styles (with & without iframes)
[] Functioning reset button.

## Credits

Based on [storybook-addon-cssprops](https://github.com/ljcl/storybook-addon-cssprops) from Luke Clark.
Based on [storybook-addon-cssprops](https://github.com/ljcl/storybook-addon-cssprops) from Luke Clark ([@ljcl](https://github.com/ljcl)).

Portions of this package are sourced from the storybook source code in order to maintain look and feel.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const CssPropsPanel: React.FC = () => {
const cssprops = useParameter<FullExtractResult>(PARAM_KEY, {});

return hasEntries(cssprops) ? (
<CssPropsTable customProperties={cssprops} inAddonPanel />
<CssPropsTable customProperties={cssprops} inAddonPanel={true} />
) : (
<NoCustomPropertiesWarning />
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const CssPropsTable: React.FC<CssPropsTableRowProps> = ({
{argsKeys.length ? (
<ArgsTable
inAddonPanel={inAddonPanel}
compact={false}
compact={true}
updateArgs={updateArgs}
resetArgs={resetArgs}
rows={rows}
Expand Down

0 comments on commit 3600216

Please sign in to comment.