mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
parent
ee9d568913
commit
daf63274f7
2952 changed files with 2957 additions and 2957 deletions
|
@ -4,6 +4,7 @@ window.addEventListener('load', function() {
|
|||
function button(label, ariaLabel, icon, className) {
|
||||
const btn = document.createElement('button');
|
||||
btn.classList.add('btnIcon', className);
|
||||
btn.setAttribute('type', 'button');
|
||||
btn.setAttribute('aria-label', ariaLabel);
|
||||
btn.innerHTML =
|
||||
'<div class="btnIcon__body">' +
|
||||
|
@ -11,8 +12,7 @@ window.addEventListener('load', function() {
|
|||
'<strong class="btnIcon__label">' +
|
||||
label +
|
||||
'</strong>' +
|
||||
'</div>' +
|
||||
'</button>';
|
||||
'</div>';
|
||||
return btn;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue