Skip to content

Commit e30e2a4

Browse files
author
Goncalves, Carla
committed
fix(bookmarklet): hide legacy Access control panel (critical CSS + nav link)
- Inline rules in index.html so bookmarklet mode hides #access even with stale bundles - Match nav pill href=#access in styles.css Made-with: Cursor
1 parent 9ede472 commit e30e2a4

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

frontend/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
66
<title>Site Crawler</title>
77
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
8+
<!-- Bookmarklet: hide legacy “Access control” panel even if an older JS bundle is cached -->
9+
<style>
10+
#root .shell--bookmarklet #access,
11+
#root .shell--bookmarklet section[aria-labelledby="accessTitle"],
12+
#root .shell--bookmarklet a.navPill[href="#access"] {
13+
display: none !important;
14+
}
15+
</style>
816
</head>
917
<body>
1018
<div id="root"></div>

frontend/src/styles.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,8 @@
10711071

10721072
/* Pin / “Access control” panel must not appear in the bookmarklet iframe */
10731073
.shell--bookmarklet #access,
1074-
.shell--bookmarklet section[aria-labelledby="accessTitle"] {
1074+
.shell--bookmarklet section[aria-labelledby="accessTitle"],
1075+
.shell--bookmarklet a.navPill[href="#access"] {
10751076
display: none !important;
10761077
}
10771078

0 commit comments

Comments
 (0)