Skip to content

Commit

Permalink
fix(panel): fix collapse action title and reverse icon direction (#7927)
Browse files Browse the repository at this point in the history
**Related Issue:** #7930

## Summary

- invert expand/collapse title attribute value.
- reverse icon direction.
  • Loading branch information
driskull committed Oct 5, 2023
1 parent 0756fe7 commit 5f620f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/calcite-components/src/components/panel/panel.tsx
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions packages/calcite-components/src/components/panel/resources.ts
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5f620f8

Please sign in to comment.