Conversation
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
|
joshblack
left a comment
There was a problem hiding this comment.
@copilot add the mergeProps.ts utility from: https://github.com/primer/react/pull/8168/changes#diff-b21bbbcb2674bcbc6f8e205e1c9223efea602c2abea46bb150c1d34b8ee06d07 and include tests for it. Also add an ADR for prop merging conventions for me with this decision. Highlight any scenarios that I should be aware of that aren't included already
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Implemented in ba4584c. Added |
|
| } | ||
| ``` | ||
|
|
||
| See [ADR-025](./adrs/adr-025-prop-merging.md) for the full decision and |
There was a problem hiding this comment.
@copilot remove this line, don't refer to ADRs as the style guide here should be the reference for everything moving forward
There was a problem hiding this comment.
Removed the ADR reference in 3254e14 so the style guide stands on its own.
| | Status | Accepted ✅ | | ||
| | Implementation | Adopted ✅ | |
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Defines consistent precedence when components and consumers provide the same prop.
Changelog
New
Changed
Removed
Rollout strategy
Testing & Reviewing