File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed 
gitbook/src/components/DocumentView/OpenAPI Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1+ --- 
2+ ' @gitbook/react-openapi ' patch 
3+ ' gitbook ' patch 
4+ --- 
5+ 
6+ Fix openapi CR preview
Original file line number Diff line number Diff line change @@ -692,18 +692,18 @@ body:has(.openapi-select-popover) {
692692}
693693
694694.openapi-disclosure-group-trigger  {
695-     @apply  flex w-full items-baseline gap-3 transition-all relative flex-1 p-3 -outline-offset-1;
695+     @apply  flex w-full cursor-pointer  items-baseline gap-3 transition-all relative flex-1 p-3 -outline-offset-1;
696696}
697697
698698.openapi-disclosure-group-label  {
699699    @apply  flex flex-wrap items-baseline gap-x-3 gap-y-1 flex-1 truncate;
700700}
701701
702- .openapi-disclosure-group-trigger : disabled  {
702+ .openapi-disclosure-group-trigger [ aria- disabled= "true" ]  {
703703    @apply  cursor-default hover:bg-inherit;
704704}
705705
706- .openapi-disclosure-group-trigger : disabled  .openapi-disclosure-group-icon  {
706+ .openapi-disclosure-group-trigger [ aria- disabled= "true" ]  .openapi-disclosure-group-icon  {
707707    @apply  invisible;
708708}
709709
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function DisclosureItem(props: {
7676    } ) ; 
7777
7878    const  panelRef  =  useRef < HTMLDivElement  |  null > ( null ) ; 
79-     const  triggerRef  =  useRef < HTMLButtonElement  |  null > ( null ) ; 
79+     const  triggerRef  =  useRef < HTMLDivElement  |  null > ( null ) ; 
8080    const  isDisabled  =  groupState ?. isDisabled  ||  ! group . tabs ?. length  ||  false ; 
8181    const  {  buttonProps : triggerProps ,  panelProps }  =  useDisclosure ( 
8282        { 
@@ -96,11 +96,11 @@ function DisclosureItem(props: {
9696
9797    return  ( 
9898        < div  className = "openapi-disclosure-group"  aria-expanded = { state . isExpanded } > 
99-             < button 
99+             < div 
100100                slot = "trigger" 
101101                ref = { triggerRef } 
102102                { ...mergeProps ( buttonProps ,  focusProps ) } 
103-                 disabled = { isDisabled } 
103+                 aria- disabled= { isDisabled } 
104104                style = { { 
105105                    outline : isFocusVisible 
106106                        ? '2px solid rgb(var(--primary-color-500)/0.4)' 
@@ -146,7 +146,7 @@ function DisclosureItem(props: {
146146                        </ div > 
147147                    )  : null } 
148148                </ div > 
149-             </ button > 
149+             </ div > 
150150
151151            { state . isExpanded  &&  selectedTab  &&  ( 
152152                < div  className = "openapi-disclosure-group-panel"  ref = { panelRef }  { ...panelProps } > 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments