react
react copied to clipboard
An implementation of GitHub's Primer Design System using React
> [!NOTE] > If we want, we can wait until we figure out the semantics for https://github.com/github/primer/issues/3183 to find out if we want to render a `` element at all...
Closes: https://github.com/github/primer/issues/3263 https://github.com/github/accessibility-audits/issues/5724 Provides more flexibility to our required indicator (currently an asterisk). This PR adds the ability to change the text of the indicator, as well as hide it...
Related To: https://github.com/github/primer/issues/3057 Before For some reason my keystroke logger wasn't registering `Space` events but the pauses before the Return events involves me pressing the `Space` key but not toggle...
Because we're housing the MarkdownToolbar in dotcom, we need to export a couple of things that we use there. ### Changelog #### New Exports `createComponent` Exports `ComponentProps` #### Changed ####...
Brings back https://github.com/primer/react/pull/3582 ---- > Copied from #3582: Adds a `loading` state to both `Button` and `IconButton`. The markup follows the recommended path forward from accessibility design, and mirrors the...
- add an area in the grid to add the drag handle (before any other icon/button/component) - drag handle should be visible when hovering over the `TreeView.Item` - only take...
Since we [deprecated `title` prop on `ActionList.Group` component](https://github.com/primer/react/pull/4395) in favour of [`ActionList.GroupHeading` component](https://github.com/primer/react/pull/3900), this PR updates the docs to reflect that deprecation. ### Changelog #### New Nothing #### Changed -...
I have a use case where I'd like to use `` with a label as the trigger element. In this scenario, the label element serves as the mouse target for...
- Part of https://github.com/github/primer/issues/3170 ### Changelog | Before | After | |--------|--------| | | | ### Rollout strategy - [x] Patch release - [ ] Minor release - [ ]...
Closes # No particular issue ### Changelog - Add the `unsafeDisableTooltip` prop for IconButton - Add proper aria-label in story - Add visual tests - Make a test plan