From 5f620f8541d6b7a9518fd8d3c5d1558420d25966 Mon Sep 17 00:00:00 2001 From: Matt Driscoll Date: Thu, 5 Oct 2023 11:09:15 -0700 Subject: [PATCH] fix(panel): fix collapse action title and reverse icon direction (#7927) **Related Issue:** #7930 ## Summary - invert expand/collapse title attribute value. - reverse icon direction. --- packages/calcite-components/src/components/panel/panel.tsx | 2 +- packages/calcite-components/src/components/panel/resources.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/calcite-components/src/components/panel/panel.tsx b/packages/calcite-components/src/components/panel/panel.tsx index f191d72ed42..4dda36e6d97 100644 --- a/packages/calcite-components/src/components/panel/panel.tsx +++ b/packages/calcite-components/src/components/panel/panel.tsx @@ -432,7 +432,7 @@ export class Panel icon={collapsed ? icons[0] : icons[1]} onClick={this.collapse} text={collapse} - title={!collapsed ? expand : collapse} + title={collapsed ? expand : collapse} /> ) : null; diff --git a/packages/calcite-components/src/components/panel/resources.ts b/packages/calcite-components/src/components/panel/resources.ts index c274955b141..6759ed1f3eb 100644 --- a/packages/calcite-components/src/components/panel/resources.ts +++ b/packages/calcite-components/src/components/panel/resources.ts @@ -22,8 +22,8 @@ export const ICONS = { menu: "ellipsis", backLeft: "chevron-left", backRight: "chevron-right", - expand: "chevron-up", - collapse: "chevron-down", + expand: "chevron-down", + collapse: "chevron-up", }; export const SLOTS = {