From 82f4bb7adf277a42f81a128446bb5b78b16909a6 Mon Sep 17 00:00:00 2001 From: Wilbert Mui Date: Thu, 24 Aug 2023 23:53:51 -0700 Subject: [PATCH] feat: add icon only button custom stylesheet export --- .../button/src/__stories__/Button.story.js | 31 +++++++++++++++++-- packages/button/src/index.js | 1 + .../button/src/presenters/ButtonPresenter.js | 11 +++++-- .../button/src/utils/iconOnlyStylesheet.js | 26 ++++++++++++++++ 4 files changed, 65 insertions(+), 4 deletions(-) create mode 100644 packages/button/src/utils/iconOnlyStylesheet.js diff --git a/packages/button/src/__stories__/Button.story.js b/packages/button/src/__stories__/Button.story.js index 99bca1515f..77558af5cd 100644 --- a/packages/button/src/__stories__/Button.story.js +++ b/packages/button/src/__stories__/Button.story.js @@ -5,6 +5,14 @@ import { Settings16, Settings24 } from "@weave-design/icons"; import Button from "../index"; import Readme from "../../README.md"; import { targets, types, widths } from "../constants"; +import iconOnlyStylesheet from "../utils/iconOnlyStylesheet"; + +const buttonWithIconOnlyCode = ` +import Button, {iconOnlyStylesheet} from "@weave-design/button"; +import { Settings24 } from "@weave-design/icons"; + +