anchor changed to button

This commit is contained in:
haseeb 2018-03-03 12:17:33 +05:30
parent 9bac5c4a7c
commit 1b2d9c0edf
4 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,6 @@ export default () => {
const embedAction = document.querySelector('#embed-action');
shareBtn.addEventListener('click', (event) => {
event.preventDefault();
shareBtn.classList.add('is-active');
embedBtn.classList.remove('is-active');
snippetUrlArea.value = `${protocol}//${host + pathname}`;
@ -14,7 +13,6 @@ export default () => {
});
embedBtn.addEventListener('click', (event) => {
event.preventDefault();
embedBtn.classList.add('is-active');
shareBtn.classList.remove('is-active');
const scriptTag = `<script src="${protocol}//${host + pathname}.js"></script>`;

View File

@ -481,7 +481,7 @@
.dropdown-menu-selectable {
li {
a {
a, button {
padding: 8px 40px;
position: relative;

View File

@ -63,7 +63,7 @@
margin-left: -1px;
}
.embed-toggle-list li a {
.embed-toggle-list li button {
padding: 8px 40px;
}

View File

@ -38,10 +38,10 @@
= sprite_icon('angle-down', size: 12)
%ul.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%li
%a#embed-btn.btn.btn-transparent.is-active{ href: "#" }
%button#embed-btn.btn.btn-transparent.is-active{ href: "#" }
%strong.embed-toggle-list-item Embed
%li
%a#share-btn.btn.btn-transparent{ href: "#" }
%button#share-btn.btn.btn-transparent{ href: "#" }
%strong.embed-toggle-list-item Share
%input#snippet-url-area.snippet-embed-input.form-control{ type: "text", autocomplete: 'off', value: snippet_embed }
.input-group-btn