react
react copied to clipboard
An implementation of GitHub's Primer Design System using React
Co-authored-by: Josh Black Closes # ### Changelog #### New #### Changed #### Removed ### Rollout strategy - [ ] Patch release - [ ] Minor release - [ ] Major...
[Aria snapshots](https://playwright.dev/docs/aria-snapshots) seems super helpful for catching a11y markup regressions! We could probably add it pretty easily alongside the visual snapshot tests, like [Primer ViewComponents](https://github.com/primer/view_components/pull/3271/) The main consequence I can...
### Description There is a bug with the new Marketplace search functionality where our navigation items that have a sub-list are appearing over the search popover. Here is a screenshot:...
`useFocusZone` accepts an uncommon optional second argument: an array of dependencies. While comparable to the dependency arrays passed to other React hooks, the optionality and unlinted nature of this argument...
## Example In the below example the default 480px and 320px either too large or too narrow. ...
### Description `AriaAlert` fails to announce `RelativeTime` content. Related: https://github.com/github/accessibility-audits/issues/10539 Questions: * Should AriaAlert be able to wrap and announce any content? Or should this only be used to wrap...
### Description `ActionMenu` has preferred API of `ActionMenu.Button` which uses a Primer `Button` and wires it up correctly. However, if you want to customise the anchor, we also provide a...
The type of the `containerRef` returned from `useFocusZone` is `RefObject`. This prevents it from being assigned to any actual HTML elements, because HTML element ref prop types are invariant[^1]. If...
Closes https://github.com/github/primer/issues/5255 This pull request adds a reusable test utility to verify that components correctly handle `className` props and applies it to the components' tests. The main focus is on...
Marketplace: https://marketplace.visualstudio.com/items?itemName=githubprimer.primer-primitives-autocomplete Source: https://github.com/primer/primitives-vscode-extension ### Rollout strategy - [x] None; only affects dev environment