From dca9c346e3a9279fe71672313d5fefae11334dcf Mon Sep 17 00:00:00 2001 From: garrettbear Date: Tue, 3 Sep 2024 17:26:10 -0700 Subject: [PATCH] feat: Icon Button to use light theme in dark mode --- ui/components/ui/icon-button/icon-button.js | 4 +++- .../ui/icon-button/icon-button.stories.tsx | 8 ++++++-- .../__snapshots__/asset-page.test.tsx.snap | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/ui/components/ui/icon-button/icon-button.js b/ui/components/ui/icon-button/icon-button.js index 326b77249950..69830128ebcd 100644 --- a/ui/components/ui/icon-button/icon-button.js +++ b/ui/components/ui/icon-button/icon-button.js @@ -31,7 +31,9 @@ export default function IconButton(props) { > {renderWrapper( <> -
{Icon}
+
+ {Icon} +
{label.length > 10 ? ( = { title: 'Components/UI/IconButton', @@ -17,7 +21,7 @@ const meta: Meta = { }, args: { onClick: () => {}, - Icon:
Icon
, + Icon: , disabled: false, label: 'Icon Button', tooltipRender: undefined, diff --git a/ui/pages/asset/components/__snapshots__/asset-page.test.tsx.snap b/ui/pages/asset/components/__snapshots__/asset-page.test.tsx.snap index 6bdd3d16c128..8a87acf3ecdd 100644 --- a/ui/pages/asset/components/__snapshots__/asset-page.test.tsx.snap +++ b/ui/pages/asset/components/__snapshots__/asset-page.test.tsx.snap @@ -40,6 +40,7 @@ exports[`AssetPage should render a native asset 1`] = ` >