File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1- import { Focusable , Navigation } from '@decky/ui' ;
1+ import { Focusable , Navigation , findClass , findClassByName } from '@decky/ui' ;
22import { FunctionComponent , useRef } from 'react' ;
33import ReactMarkdown , { Options as ReactMarkdownOptions } from 'react-markdown' ;
44import remarkGfm from 'remark-gfm' ;
@@ -8,6 +8,9 @@ interface MarkdownProps extends ReactMarkdownOptions {
88}
99
1010const Markdown : FunctionComponent < MarkdownProps > = ( props ) => {
11+ const eventDetailsBodyClassName = findClassByName ( 'EventDetailsBody' ) || undefined ;
12+ const eventLinkClassName = findClass ( '43088' , 'Link' ) ;
13+
1114 return (
1215 < Focusable >
1316 < ReactMarkdown
@@ -25,8 +28,10 @@ const Markdown: FunctionComponent<MarkdownProps> = (props) => {
2528 Navigation . NavigateToExternalWeb ( aRef . current ! . href ) ;
2629 } }
2730 style = { { display : 'inline' } }
31+ focusClassName = "steam-focus"
32+ className = { eventDetailsBodyClassName }
2833 >
29- < a ref = { aRef } { ...nodeProps . node . properties } >
34+ < a ref = { aRef } { ...nodeProps . node . properties } className = { eventLinkClassName } >
3035 { nodeProps . children }
3136 </ a >
3237 </ Focusable >
You can’t perform that action at this time.
0 commit comments