Skip to content

Commit

Permalink
fix(collapse): header width
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Oct 24, 2024
1 parent b569a07 commit 53c0519
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/collapse/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Collapse = ({
<IconChevronDown className={classNames(styles.icon, internalOpen && styles.icon_open)} />
</Icon>

<div>{header}</div>
<div className={styles.header_content}>{header}</div>
</summary>

{children}
Expand Down
5 changes: 5 additions & 0 deletions packages/components/collapse/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
cursor: pointer;

margin-bottom: scss-utils.get-css-var(collapse, spacing);

&_content {
flex-grow: 1;
flex-shrink: 1;
}
}

.icon {
Expand Down

0 comments on commit 53c0519

Please sign in to comment.