Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ function AnchorRenderer({tnode, style, key}: AnchorRendererProps) {

const textDecorationLineStyle = isDeleted ? styles.lineThrough : {};

// In high-contrast themes, underline report action links so they are distinguishable by more than color (WCAG 1.4.1).
// The `styles.link` used by the non-comment link path above already handles this, but AnchorForCommentsOnly does not use it.
const highContrastUnderlineStyle = theme.isHighContrast ? styles.underline : {};

const onLinkPress = useMemo(() => {
if (internalNewExpensifyPath || internalExpensifyPath) {
return () => openLink(attrHref, environmentURL, isAttachment);
Expand Down Expand Up @@ -142,6 +146,7 @@ function AnchorRenderer({tnode, style, key}: AnchorRendererProps) {
style,
parentStyle,
styles.textDecorationLineNone,
highContrastUnderlineStyle,
textDecorationLineStyle,
styles.textUnderlinePositionUnder,
styles.textDecorationSkipInkNone,
Expand Down Expand Up @@ -169,6 +174,7 @@ function AnchorRenderer({tnode, style, key}: AnchorRendererProps) {
props.childTnode.getNativeStyles(),
parentStyle,
styles.textDecorationLineNone,
highContrastUnderlineStyle,
textDecorationLineStyle,
styles.textUnderlinePositionUnder,
styles.textDecorationSkipInkNone,
Expand Down
Loading