From f072227b4e698660fda3c2416ed8a629e8e48a79 Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Mon, 23 Sep 2024 11:28:50 +0200 Subject: [PATCH] Add bg for ProgressBar.item (#237) * Add bg for ProgressBar.item Merge this once https://github.com/primer/react/pull/5007 is merged * Create beige-schools-horse.md --- .changeset/beige-schools-horse.md | 5 +++++ src/rules/no-system-props.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/beige-schools-horse.md diff --git a/.changeset/beige-schools-horse.md b/.changeset/beige-schools-horse.md new file mode 100644 index 00000000..58e598da --- /dev/null +++ b/.changeset/beige-schools-horse.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Add `bg` prop to `ProgressBar.Item` diff --git a/src/rules/no-system-props.js b/src/rules/no-system-props.js index 83cb111b..393d37f9 100644 --- a/src/rules/no-system-props.js +++ b/src/rules/no-system-props.js @@ -44,6 +44,7 @@ const excludedComponentProps = new Map([ ['PageLayout.Pane', new Set(['padding', 'position', 'width'])], ['PageLayout.Content', new Set(['padding', 'width'])], ['ProgressBar', new Set(['bg'])], + ['ProgressBar.Item', new Set(['bg'])], ['PointerBox', new Set(['bg'])], ['Truncate', new Set(['maxWidth'])], ['Stack', new Set(['padding', 'gap'])],