Skip to content

Commit

Permalink
fix(collapse): fix padding-bottom when active (#1882)
Browse files Browse the repository at this point in the history
Co-authored-by: maxin <maxin@growingio.com>
  • Loading branch information
nnmax and maxin committed Mar 3, 2022
1 parent aa778ca commit c8cbfc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/collapse/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
font-weight: bold;
line-height: 36px;
cursor: pointer;
transition: all 0.3s, visibility 0s;
transition: all 0.3s, visibility 0s, padding 0s;

.arrow-isRotate {
& svg {
Expand Down Expand Up @@ -72,6 +72,10 @@
}
}

&-active > .@{collapse-prefix-cls}-header {
padding-bottom: 8px;
}

.@{collapse-prefix-cls}-header-collapsible-only {
cursor: default;
.@{collapse-prefix-cls}-header-text {
Expand Down

1 comment on commit c8cbfc5

@vercel
Copy link

@vercel vercel bot commented on c8cbfc5 Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.