react
react copied to clipboard
An implementation of GitHub's Primer Design System using React
Created from https://github.com/primer/react/pull/2168 by @jdrush89 Describe your changes here. Add support for ReactNode as the child type in ActionMenu.Overlay so that conditional children can be rendered within an overlay. Closes...
The `context` prop on the `Slots` component generated by `createSlots` is marked as optional: https://github.com/primer/react/blob/2b5c86e59f16d697433e3302e78d623a177a061e/src/utils/create-slots.tsx#L31 However, not providing this prop causes an infinite render loop. The result will look fine,...
Context: The current slot implementation isn't ideal when it comes to server side rendering - It only renders the freeform main slot on the server and then adds other slots...
A React implementation of https://github.com/primer/css/pull/2152 The code in this PR is sub-par and not meant to be reviewed. It's just something that was quickly hacked together as a proof-of-concept. I'll...
Refactor Avatar to use Box + sx as recommended in https://github.com/primer/react/pull/2020
**Describe the bug** I am trying to use the [Popover](https://primer.style/react/Popover) component in DotCom for the file comments within our React app prototype & it does not work as I assumed...
**Describe the bug** Key press event listeners for interacting with action list are not invoked when an element is in focus. This issue was first posted in the primer-react channel...
> Co-authored-by: @hectahertz ## Context This PR addresses the changes derived from: - The [Accessibility design review](https://github.com/github/primer/issues/659) of [the Figma files](https://www.figma.com/file/KBfDd7lnhjPDWxmZWilh5c/Scrap-paper?node-id=516%3A41331) - The [Accessibility engineering review](https://github.com/github/primer/issues/1021) The [Accessibility engineering review](https://github.com/github/primer/issues/1021)...
Part of the [toolchain for component development](https://github.com/github/primer/issues/774#toolchain) _Before we start asking other teams to start using the toolchain, we should use it in internal repos to test the experience_ ...