Skip to content

Commit 93f3788

Browse files
mattcosta7Copilotfrancinelucca
authored
Add Sidebar to SplitPageLayout props set (#565)
* Add Sidebar to SplitPageLayout props set * Add changeset for SplitPageLayout.Sidebar update --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
1 parent 8c3c371 commit 93f3788

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/short-teeth-cheat.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+
Add SplitPageLayout.Sidebar to no-system-props exclusions for padding, position, and width.

src/rules/no-system-props.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const excludedComponentProps = new Map([
3434
['SplitPageLayout.Footer', new Set(['padding'])],
3535
['SplitPageLayout.Pane', new Set(['padding', 'position', 'width'])],
3636
['SplitPageLayout.Content', new Set(['padding', 'width'])],
37+
['SplitPageLayout.Sidebar', new Set(['padding', 'position', 'width'])],
3738
['StyledOcticon', new Set(['size'])],
3839
['Octicon', new Set(['size', 'color'])],
3940
['PointerBox', new Set(['bg'])],

0 commit comments

Comments
 (0)