From 392235a6438d438180d7808732c8148b01ab306c Mon Sep 17 00:00:00 2001 From: Raviteja Lingineni Date: Fri, 18 Aug 2023 14:50:52 -0500 Subject: [PATCH] Module: Center the collapse/expand icon (#3142) --- packages/gestalt/src/Module/ExpandableItem.js | 3 +- .../__snapshots__/ExpandableItem.test.js.snap | 7 ++- .../ModuleExpandable.test.js.snap | 49 ++++++++++++++++--- 3 files changed, 50 insertions(+), 9 deletions(-) diff --git a/packages/gestalt/src/Module/ExpandableItem.js b/packages/gestalt/src/Module/ExpandableItem.js index 1721b5c64d..e7a955c2d1 100644 --- a/packages/gestalt/src/Module/ExpandableItem.js +++ b/packages/gestalt/src/Module/ExpandableItem.js @@ -84,8 +84,9 @@ export default function ModuleExpandableItem({ )} + {/* Adding a max height because the line height is 24, and we don't want the icon container to expand */} {Boolean(children) && ( - +