Skip to content

Commit ba7fefc

Browse files
Merge pull request #23 from glints-dev/feat/pressed-bulk-action-button
Pressed bulk action button
2 parents 5ef495e + 7cdc7c2 commit ba7fefc

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.changeset/nervous-years-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris-glints': minor
3+
---
4+
5+
pressed bulk action button style

polaris-react/src/components/BulkActions/components/BulkActionButton/BulkActionButton.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type BulkActionButtonProps = {
1313
indicator?: boolean;
1414
handleMeasurement?(width: number): void;
1515
showContentInButton?: boolean;
16+
pressed?: boolean;
1617
} & DisableableAction;
1718

1819
export function BulkActionButton({
@@ -26,6 +27,7 @@ export function BulkActionButton({
2627
disabled,
2728
indicator,
2829
showContentInButton,
30+
pressed,
2931
}: BulkActionButtonProps) {
3032
const bulkActionButton = useRef<HTMLDivElement>(null);
3133

@@ -56,6 +58,7 @@ export function BulkActionButton({
5658
<Icon source={HorizontalDotsMinor} color="base" />
5759
) : undefined
5860
}
61+
pressed={pressed}
5962
>
6063
{buttonContent}
6164
</Button>

polaris-react/src/components/BulkActions/components/BulkActionMenu/BulkActionMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function BulkActionMenu({
2828
onAction={toggleMenuVisibility}
2929
content={title}
3030
indicator={isNewBadgeInBadgeActions}
31+
pressed={isVisible}
3132
/>
3233
}
3334
onClose={toggleMenuVisibility}

0 commit comments

Comments
 (0)