You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: The ActionList.TrailingAction component within ActionList.Item is causing a layout issue. The underlying IconButton exceeds the available height of 20px, causing unwanted expansion of the wrapping element.
Description: SelectPanel does not correctly pick the direction to open in when used inside Dialog V2 footer, leading to the panel opening off the page downwards.
Description: Problems arise from mixing Primer and non-Primer components due to Primer Portal setting a div with z-index of 1, causing non-Primer components with their own z-indices to be buried.
importReactfrom'react';import{ActionList,IconButton}from'@primer/react';import{TrashIcon}from'@primer/octicons-react';functionApp(){return(<ActionList><ActionList.Item><ActionList.LeadingVisual><CommentIcon/></ActionList.LeadingVisual>
Thread Name
<ActionList.Descriptionvariant="inline"><RelativeTimedate={newDate()}format="relative"/></ActionList.Description><ActionList.TrailingActionicon={TrashIcon}label="Delete conversation"onClick={()=>{}}/></ActionList.Item></ActionList>);}exportdefaultApp;
Run the Project: Observe the layout issue with ActionList.TrailingAction.
importReact,{useState,useRef}from'react';import{Button,Overlay,Dialog}from'@primer/react';functionApp(){const[overlayVisible,setOverlayVisible]=useState(false);constbuttonRef=useRef(null);return(<><ButtononClick={()=>setOverlayVisible(true)}ref={buttonRef}>
Open Overlay
</Button>{overlayVisible&&(<OverlayreturnFocusRef={buttonRef}onClickOutside={()=>setOverlayVisible(false)}onEscape={()=>setOverlayVisible(false)}><ButtononClick={()=>setDialogVisible(true)}>Open Dialog</Button></Overlay>)}</>);}exportdefaultApp;
Run the Project: Observe the click outside issue with Dialog and Overlay.
importReactfrom'react';import{ActionMenu,IconButton}from'@primer/react';import{FilterIcon}from'@primer/octicons-react';functionApp(){return(<ActionMenu><ActionMenu.Anchor><divclassName="relative"><IconButtonaria-label="Filter files in tree"icon={FilterIcon}/><divaria-label="Showing only changed files"className="active-indicator"/></div></ActionMenu.Anchor></ActionMenu>);}exportdefaultApp;
Run the Project: Observe the accessibility issue with ActionMenu.Anchor.
Description
Here are some recent open bugs in the primer/react repository:
ActionList.TrailingAction
does not fitActionList.Item
parentActionList.TrailingAction
component withinActionList.Item
is causing a layout issue. The underlyingIconButton
exceeds the available height of 20px, causing unwanted expansion of the wrapping element.Stack
does not properly forward refStack
appears to accept aref
prop based on the TypeScript types, but this ref is not actually bound to the underlying element.SelectPanel inside Dialog v2 footer incorrectly chooses its anchor side on opening (memex)
Portal is not ssr compat - accesses
document
during renderInlineAutocomplete
, we inherit usage of<Portal />
rendering on page load, which isn't SSR compatible.Portal Hardcoded Z-Index Buries Components
Dialog
V2 does not work when stacked overOverlay
s or other components usinguseOnClickOutside
Dialog
component does not useuseOnClickOutside
, causing issues when stacked overOverlay
orAnchoredOverlay
.Sub-component pattern cause error when used in React Server Components
PageLayout
, it cannot be used in a React Server Component.UnderlineNav items collapses into the more menu then it is wrapped with a flex
ActionMenu.Anchor should only accept button
ActionMenu.Anchor
should validate its children and only accept a button to avoid accessibility issues.SelectPanel bug when we have static items list is inside same component
There are 25 open bug issues in total.
Steps to reproduce
To reproduce the errors described above, please follow these steps.
Reproducing
ActionList.TrailingAction
Layout IssueActionList.TrailingAction
.Reproducing
Stack
Ref Forwarding Issuenull
instead of anHTMLDivElement
.Reproducing
SelectPanel
inDialog V2
Footer IssueSelectPanel
opening off the page downwards.Reproducing
Portal
SSR Compatibility Issuedocument
during render.Reproducing
Portal
Z-Index IssueReproducing
Dialog
V2 Click Outside IssueDialog
andOverlay
.Reproducing Sub-Component Pattern Error
Reproducing
UnderlineNav
Flex IssueReproducing
ActionMenu.Anchor
Button IssueActionMenu.Anchor
.Reproducing
SelectPanel
Static Items IssueSelectPanel
when static items list is inside the same component.Version
v35.2.0
Browser
No response
The text was updated successfully, but these errors were encountered: