File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181
8282 .cloud-snippet {
8383 padding : 24px ;
84+
85+ .cloud-snippet-title-button {
86+ display : inline ;
87+ margin : 0 ;
88+ padding : 0 ;
89+ border : none ;
90+ background : none ;
91+ font : inherit ;
92+ color : #2271b1 ;
93+ cursor : pointer ;
94+ text-align : start ;
95+ text-decoration : underline ;
96+
97+ & :focus-visible {
98+ outline : 2px solid #2271b1 ;
99+ outline-offset : 2px ;
100+ border-radius : 2px ;
101+ }
102+ }
84103 }
85104
86105 .cloud-snippet-meta {
Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ interface CloudSnippetDetailsProps {
3030const CloudSnippetDetails : React . FC < CloudSnippetDetailsProps > = ( { snippet, setIsPreviewOpen } ) =>
3131 < div className = "cloud-snippet" >
3232 < h3 >
33- < a
34- href = "#"
33+ < button
34+ type = "button"
35+ className = "cloud-snippet-title-button"
3536 title = { __ ( 'Preview this snippet' , 'code-snippets' ) }
36- onClick = { event => {
37- event . preventDefault ( )
37+ onClick = { ( ) => {
3838 setIsPreviewOpen ( true )
3939 } }
4040 >
4141 { snippet . name }
42- </ a >
42+ </ button >
4343 </ h3 >
4444
4545 < div className = "cloud-snippet-meta" >
You can’t perform that action at this time.
0 commit comments