From 4dd6bef7513e6ae32aa236410f2fbf1eb72a5eb9 Mon Sep 17 00:00:00 2001 From: Siddharth Kshetrapal Date: Mon, 13 May 2024 16:30:20 +0200 Subject: [PATCH] ActionList: Fix leaky disabled description styles (#4566) * replace leaky & with data-component * Create stupid-stingrays-sparkle.md --- .changeset/stupid-stingrays-sparkle.md | 5 +++++ packages/react/src/ActionList/Description.tsx | 17 +++++------------ 2 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 .changeset/stupid-stingrays-sparkle.md diff --git a/.changeset/stupid-stingrays-sparkle.md b/.changeset/stupid-stingrays-sparkle.md new file mode 100644 index 00000000000..cc03222695a --- /dev/null +++ b/.changeset/stupid-stingrays-sparkle.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +ActionList: Fix leaky description styles for disabled item diff --git a/packages/react/src/ActionList/Description.tsx b/packages/react/src/ActionList/Description.tsx index ffa9b0bf359..8b298418411 100644 --- a/packages/react/src/ActionList/Description.tsx +++ b/packages/react/src/ActionList/Description.tsx @@ -28,23 +28,15 @@ export const Description: React.FC + {props.children} ) : ( @@ -54,6 +46,7 @@ export const Description: React.FC {props.children}