From fd6e885d8075b299656120c39068f64c301826b4 Mon Sep 17 00:00:00 2001 From: Augusto Moura Date: Mon, 16 Sep 2024 23:04:27 -0300 Subject: [PATCH 1/2] Override padding for bordered collapsible Section --- packages/base/Section/src/Section/Section.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/base/Section/src/Section/Section.tsx b/packages/base/Section/src/Section/Section.tsx index eb4f8d8c22..923fa13a4f 100644 --- a/packages/base/Section/src/Section/Section.tsx +++ b/packages/base/Section/src/Section/Section.tsx @@ -154,6 +154,7 @@ export const Section = forwardRef(function Section( 'pt-8', classesByVariant[variant], variant === 'default' && collapsed && 'pb-8', + collapsible && variant === 'bordered' && 'p-6', className )} > From e52fa03841c43d46d3bca58b31d5812e6b0516e9 Mon Sep 17 00:00:00 2001 From: Augusto Moura Date: Mon, 16 Sep 2024 23:06:06 -0300 Subject: [PATCH 2/2] Add changeset --- .changeset/stupid-lions-deny.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/stupid-lions-deny.md diff --git a/.changeset/stupid-lions-deny.md b/.changeset/stupid-lions-deny.md new file mode 100644 index 0000000000..1bbaadc5c0 --- /dev/null +++ b/.changeset/stupid-lions-deny.md @@ -0,0 +1,8 @@ +--- +'@toptal/picasso-section': patch +'@toptal/picasso': patch +--- + +### Section + +- fix padding of collapsible bordered section not following BASE spec