Skip to content

Commit

Permalink
Allow ActionMenu.Button alignContent prop (#202)
Browse files Browse the repository at this point in the history
* Allow ActionMenu.Button alignContent prop

* changeset
  • Loading branch information
keithamus authored Jul 19, 2024
1 parent 8617a66 commit 0293fdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-lizards-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-primer-react': patch
---

Allow ActionMenu.Button alignContent prop
1 change: 1 addition & 0 deletions src/rules/no-system-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const utilityComponents = new Set(['Box', 'Text'])
// Components for which we allow a set of prop names
const excludedComponentProps = new Map([
['ActionMenu.Overlay', new Set(['width', 'height', 'maxHeight', 'position', 'top', 'right', 'bottom', 'left'])],
['ActionMenu.Button', new Set(['alignContent'])],
['Autocomplete.Overlay', new Set(['width', 'height', 'maxHeight', 'position', 'top', 'right', 'bottom', 'left'])],
['AnchoredOverlay', new Set(['width', 'height'])],
['Avatar', new Set(['size'])],
Expand Down

0 comments on commit 0293fdc

Please sign in to comment.