From 29037054522630bcfef00e485ae5fe05ab307131 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Fri, 19 Jul 2024 09:46:41 +0100 Subject: [PATCH 1/2] Allow ActionMenu.Button alignContent prop --- src/rules/no-system-props.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rules/no-system-props.js b/src/rules/no-system-props.js index 0beec21b..1d3d21c4 100644 --- a/src/rules/no-system-props.js +++ b/src/rules/no-system-props.js @@ -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'])], From bdea5e33417325d66c8696a97abf3567c09f70e3 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Fri, 19 Jul 2024 09:48:24 +0100 Subject: [PATCH 2/2] changeset --- .changeset/swift-lizards-vanish.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/swift-lizards-vanish.md diff --git a/.changeset/swift-lizards-vanish.md b/.changeset/swift-lizards-vanish.md new file mode 100644 index 00000000..cf84f7c6 --- /dev/null +++ b/.changeset/swift-lizards-vanish.md @@ -0,0 +1,5 @@ +--- +'eslint-plugin-primer-react': patch +--- + +Allow ActionMenu.Button alignContent prop