Link right clicking our logo to brand design guide lines (#22347)

This commit is contained in:
Paulus Schoutsen 2022-04-11 10:37:00 -07:00 committed by GitHub
parent c18e3c77e2
commit 7ec394ca7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,10 @@ docsearch({
debug: false // Set debug to true if you want to inspect the dropdown
});
document.querySelector('.site-title').addEventListener('contextmenu', function(ev) {
ev.preventDefault();
document.location.assign("https://design.home-assistant.io/#brand/logo")
});
document.querySelector('.search .close').addEventListener('click', function(ev) {
ev.preventDefault();
document.querySelector('.search-container').style.display = 'none';