Skip to content

Commit 308b478

Browse files
authored
Remove misleading close button in panel notification (#1497)
1 parent baa87fe commit 308b478

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

extension-manifest-v3/src/pages/panel/components/notification.js

-18
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
import { html } from 'hybrids';
1313
import { openTabWithUrl } from '/utils/tabs.js';
1414

15-
function close(host, event) {
16-
event.preventDefault();
17-
event.stopPropagation();
18-
19-
host.parentNode.removeChild(host);
20-
}
21-
2215
export default {
2316
icon: '',
2417
href: '',
@@ -43,17 +36,6 @@ export default {
4336
<slot name="action"></slot>
4437
</ui-text>
4538
</div>
46-
<ui-action>
47-
<button
48-
id="close"
49-
onclick="${close}"
50-
layout="margin:-2 self:start shrink:0 padding"
51-
>
52-
<div layout="row center size:3">
53-
<ui-icon name="close" layout="size:2"></ui-icon>
54-
</div>
55-
</button>
56-
</ui-action>
5739
</a>
5840
</ui-action>
5941
</template>

0 commit comments

Comments
 (0)