Skip to content

Commit 0293fdc

Browse files
authored
Allow ActionMenu.Button alignContent prop (#202)
* Allow ActionMenu.Button alignContent prop * changeset
1 parent 8617a66 commit 0293fdc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/swift-lizards-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-primer-react': patch
3+
---
4+
5+
Allow ActionMenu.Button alignContent prop

src/rules/no-system-props.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const utilityComponents = new Set(['Box', 'Text'])
1515
// Components for which we allow a set of prop names
1616
const excludedComponentProps = new Map([
1717
['ActionMenu.Overlay', new Set(['width', 'height', 'maxHeight', 'position', 'top', 'right', 'bottom', 'left'])],
18+
['ActionMenu.Button', new Set(['alignContent'])],
1819
['Autocomplete.Overlay', new Set(['width', 'height', 'maxHeight', 'position', 'top', 'right', 'bottom', 'left'])],
1920
['AnchoredOverlay', new Set(['width', 'height'])],
2021
['Avatar', new Set(['size'])],

0 commit comments

Comments
 (0)