Closed CLSnazel closed 2 years ago
✔️ Deploy Preview for evergreen-storybook ready!
🔨 Explore the source changes: 16bad080348ee8cdab5a4c778d207ada5852b2c3
🔍 Inspect the deploy log: https://app.netlify.com/sites/evergreen-storybook/deploys/619d6557c4b7000007935673
😎 Browse the preview: https://deploy-preview-1287--evergreen-storybook.netlify.app
Overview This branch removes the warning shown in #1236 and #1234. Giving a custom appearance value that is not the preset
default
,primary
orminimal
will no longer cause a warning in the browser. This is helpful for those who intend to apply themes of their own and would like to name button appearances without browser warnings.The Button prop types have been set to
string
instead ofoneOf
the preset values for the default theme.Screenshots (if applicable) In storybook, a button appearance of
destructive
is applied to buttons in theButton types
story. It results in this warning in the console: With this branch, warnings like this will not appear.Documentation