File tree Expand file tree Collapse file tree 2 files changed +31
-34
lines changed 
packages/feedback/src/screenshot/components Expand file tree Collapse file tree 2 files changed +31
-34
lines changed Original file line number Diff line number Diff line change @@ -7,38 +7,25 @@ interface FactoryParams {
77export  default  function  PenIconFactory ( { 
88  h,  // eslint-disable-line @typescript-eslint/no-unused-vars 
99} : FactoryParams )  { 
10-   return  function  PenIcon ( {  isAnnotating ,  onClick  } :  {   isAnnotating :  boolean ;   onClick :  ( e :  Event )   =>   void   } ) : VNode  { 
10+   return  function  PenIcon ( ) : VNode  { 
1111    return  ( 
12-       < button 
13-         class = "editor__pen-tool" 
14-         style = { { 
15-           background : isAnnotating 
16-             ? 'var(--button-primary-background, var(--accent-background))' 
17-             : 'var(--button-background, var(--background))' , 
18-           color : isAnnotating 
19-             ? 'var(--button-primary-foreground, var(--accent-foreground))' 
20-             : 'var(--button-foreground, var(--foreground))' , 
21-         } } 
22-         onClick = { onClick } 
23-       > 
24-         < svg  width = "16"  height = "16"  viewBox = "0 0 16 16"  fill = "none"  xmlns = "http://www.w3.org/2000/svg" > 
25-           < path 
26-             d = "M8.5 12L12 8.5L14 11L11 14L8.5 12Z" 
27-             stroke = "currentColor" 
28-             strokeWidth = "1.5" 
29-             strokeLinecap = "round" 
30-             strokeLinejoin = "round" 
31-           /> 
32-           < path 
33-             d = "M12 8.5L11 3.5L2 2L3.5 11L8.5 12L12 8.5Z" 
34-             stroke = "currentColor" 
35-             strokeWidth = "1.5" 
36-             strokeLinecap = "round" 
37-             strokeLinejoin = "round" 
38-           /> 
39-           < path  d = "M2 2L7.5 7.5"  stroke = "currentColor"  strokeWidth = "1.5"  strokeLinecap = "round"  strokeLinejoin = "round"  /> 
40-         </ svg > 
41-       </ button > 
12+       < svg  width = "16"  height = "16"  viewBox = "0 0 16 16"  fill = "none"  xmlns = "http://www.w3.org/2000/svg" > 
13+         < path 
14+           d = "M8.5 12L12 8.5L14 11L11 14L8.5 12Z" 
15+           stroke = "currentColor" 
16+           strokeWidth = "1.5" 
17+           strokeLinecap = "round" 
18+           strokeLinejoin = "round" 
19+         /> 
20+         < path 
21+           d = "M12 8.5L11 3.5L2 2L3.5 11L8.5 12L12 8.5Z" 
22+           stroke = "currentColor" 
23+           strokeWidth = "1.5" 
24+           strokeLinecap = "round" 
25+           strokeLinejoin = "round" 
26+         /> 
27+         < path  d = "M2 2L7.5 7.5"  stroke = "currentColor"  strokeWidth = "1.5"  strokeLinecap = "round"  strokeLinejoin = "round"  /> 
28+       </ svg > 
4229    ) ; 
4330  } ; 
4431} 
Original file line number Diff line number Diff line change @@ -396,13 +396,23 @@ export function ScreenshotEditorFactory({
396396        < style  nonce = { options . styleNonce }  dangerouslySetInnerHTML = { styles }  /> 
397397        { options . _experiments . annotations  &&  ( 
398398          < div  class = "editor__tool-container" > 
399-             < PenIcon 
400-               isAnnotating = { isAnnotating } 
399+             < button 
400+               class = "editor__pen-tool" 
401+               style = { { 
402+                 background : isAnnotating 
403+                   ? 'var(--button-primary-background, var(--accent-background))' 
404+                   : 'var(--button-background, var(--background))' , 
405+                 color : isAnnotating 
406+                   ? 'var(--button-primary-foreground, var(--accent-foreground))' 
407+                   : 'var(--button-foreground, var(--foreground))' , 
408+               } } 
401409              onClick = { e  =>  { 
402410                e . preventDefault ( ) ; 
403411                setIsAnnotating ( ! isAnnotating ) ; 
404412              } } 
405-             /> 
413+             > 
414+               < PenIcon > </ PenIcon > 
415+             </ button > 
406416          </ div > 
407417        ) } 
408418        < div  class = "editor__canvas-container"  ref = { canvasContainerRef } > 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments