diff --git a/.changeset/breezy-boxes-jog.md b/.changeset/breezy-boxes-jog.md new file mode 100644 index 00000000000..bce0b690f8f --- /dev/null +++ b/.changeset/breezy-boxes-jog.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +Changes the accessible name of the "toggle" button in `LabelGroup` to contain the visual label diff --git a/packages/react/src/LabelGroup/LabelGroup.tsx b/packages/react/src/LabelGroup/LabelGroup.tsx index 8d0dbba40ad..e39d389ddd1 100644 --- a/packages/react/src/LabelGroup/LabelGroup.tsx +++ b/packages/react/src/LabelGroup/LabelGroup.tsx @@ -73,7 +73,6 @@ const InlineToggle: React.FC<{ hiddenItemIds, isOverflowShown, showAllTokensInline, - totalLength, }) => isOverflowShown ? ( ) : hiddenItemIds.length ? ( ) : null @@ -106,7 +105,6 @@ const OverlayToggle: React.FC< openOverflowOverlay, overlayPaddingPx, overlayWidth, - totalLength, }) => hiddenItemIds.length ? ( ( )}