Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(html): disable text selection on nav and badge buttons (#36839)

Adam Gastineau3c0d324b4f97
diff --git a/packages/html-reporter/src/common.css b/packages/html-reporter/src/common.css
index bf1926a6cc..dc3323d29f 100644
--- a/packages/html-reporter/src/common.css
+++ b/packages/html-reporter/src/common.css
@@ -208,6 +208,7 @@ article, aside, details, figcaption, figure, footer, header, main, menu, nav, se
line-height: 20px;
color: var(--color-fg-default);
border: 1px solid var(--color-border-default);
+ user-select: none;
}
.subnav-item:hover {
diff --git a/packages/html-reporter/src/links.css b/packages/html-reporter/src/links.css
index 29dc2fc0c6..d8f7380676 100644
--- a/packages/html-reporter/src/links.css
+++ b/packages/html-reporter/src/links.css
@@ -115,6 +115,7 @@
flex: none;
background-color: transparent;
border-color: transparent;
+ user-select: none;
}
.link-badge-dim span {