File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export const WEB_DEFAULT_HTML_STYLE: HtmlStyle = {
4343 a : {
4444 color : 'green' ,
4545 textDecorationLine : 'underline' ,
46+ pressColor : 'darkblue' ,
4647 } ,
4748 ol : {
4849 gapWidth : 16 ,
Original file line number Diff line number Diff line change @@ -910,7 +910,16 @@ export interface EnrichedTextMentionStyleProperties extends MentionStyleProperti
910910 pressBackgroundColor ?: ColorValue ;
911911}
912912
913- export interface EnrichedTextHtmlStyle extends Omit < HtmlStyle , 'mention' > {
913+ export interface EnrichedTextHtmlStyle extends Omit <
914+ HtmlStyle ,
915+ 'a' | 'mention'
916+ > {
917+ a ?: Omit < NonNullable < HtmlStyle [ 'a' ] > , 'pressColor' > & {
918+ // the documentation comment below is to suppress the base HtmlStyle's
919+ // web-only note about pressColor, as in EnrichedText it is cross-platform
920+ /***/
921+ pressColor ?: ColorValue ;
922+ } ;
914923 mention ?:
915924 | Record < string , EnrichedTextMentionStyleProperties >
916925 | EnrichedTextMentionStyleProperties ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ export function useLinkPress(
88 const pressedLinkRef = useRef < HTMLElement | null > ( null ) ;
99
1010 const handleLinkPress = ( event : PointerEvent ) : boolean => {
11- if ( ! getOnLinkPress ( ) ) return false ;
1211 const onPress = getOnLinkPress ( ) ;
1312 if ( ! onPress ) return false ;
1413 const anchor = ( event . target as HTMLElement ) . closest ?.( 'a' ) ;
You can’t perform that action at this time.
0 commit comments