Skip to content

Commit df0738e

Browse files
Test page: Don't trigger ad-blockers with class (#2677)
A selector `.share-wrapper` seems to be in one of the common block lists, so I just renamed the wrapper from "share-wrapper" to "link-wrapper". This should prevent ad-blockers from blocking our "Share" link.
1 parent b5f4f10 commit df0738e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -95,33 +95,33 @@
9595
position: relative;
9696
}
9797

98-
.share-wrapper {
98+
.link-wrapper {
9999
position: absolute;
100100
top: 0;
101101
right: 0;
102102
background-color: white;
103103
}
104-
.share-wrapper .hidden-wrapper {
104+
.link-wrapper .hidden-wrapper {
105105
display: none;
106106
}
107107

108-
.share-wrapper:hover {
108+
.link-wrapper:hover {
109109
top: -.5em;
110110
right: -1em;
111111
width: 300px;
112112
padding: .5em 1em;
113113
outline: 1px solid #888;
114114
}
115-
.share-wrapper:hover .hidden-wrapper {
115+
.link-wrapper:hover .hidden-wrapper {
116116
display: block;
117117
}
118118

119-
.share-wrapper input {
119+
.link-wrapper input {
120120
width: 100%;
121121
box-sizing: border-box;
122122
}
123123

124-
.share-wrapper button {
124+
.link-wrapper button {
125125
border: none;
126126
background: none;
127127
font: inherit;
@@ -155,7 +155,7 @@ <h2>Test drive</h2>
155155

156156
<div id="options" style="margin: 1em 0">
157157
<label><input type="checkbox" id="option-show-tokens"> Show tokens</label>
158-
<div class="share-wrapper">
158+
<div class="link-wrapper">
159159
<a id="share-link" href="" style="float: right;">Share</a>
160160
<div class="hidden-wrapper">
161161
<input id="share-link-input" type="text" readonly onClick="this.select();"/>

0 commit comments

Comments
 (0)