Skip to content

Commit 5ed51a5

Browse files
Add comment explaining the -3 margin on searchBulkActionsButton
The filter bar row is 34px and the larger button is 40px, so we offset by half the difference ((40-34)/2 = 3) to prevent layout shift. Co-authored-by: Shawn Borton <shawnborton@users.noreply.github.com>
1 parent ed27170 commit 5ed51a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/styles/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4900,6 +4900,8 @@ const staticStyles = (theme: ThemeColors) =>
49004900
minHeight: variables.componentSizeSmall,
49014901
},
49024902

4903+
// The filter bar row is 34px tall, but the default (larger) bulk-action button is 40px.
4904+
// To keep the bar from growing, we pull the button up/down by half the difference: (40 - 34) / 2 = 3.
49034905
searchBulkActionsButton: {
49044906
marginVertical: -3,
49054907
},

0 commit comments

Comments
 (0)