Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 15, 2024
1 parent 1041f56 commit 5498c3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function PseudoHtmlDiff({
{codeLine}
{/* Add ^^^^ to the target tags used for snapshots but not displayed for users */}
{isHighlightedTag && (
<span hidden>
<span data-nextjs-container-errors-pseudo-html--hint>
{spaces + '^'.repeat(component.length + 2) + '\n'}
</span>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ export const styles = css`
color: var(--color-ansi-red);
font-weight: bold;
}
/* hide but text are still accessible in DOM */
[data-nextjs-container-errors-pseudo-html--hint] {
display: inline-block;
font-size: 0;
}
[data-nextjs-container-errors-pseudo-html--tag-adjacent='false'] {
color: var(--color-accents-3);
}
Expand Down

0 comments on commit 5498c3b

Please sign in to comment.