Skip to content

Commit

Permalink
Create utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
takayukister committed Sep 1, 2024
1 parent ad7eb0d commit 1976a3e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions admin/includes/js/src/utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const iconInCircle = icon => {
const span = document.createElement( 'span' );

span.classList.add( 'icon-in-circle' );
span.setAttribute( 'aria-hidden', 'true' );
span.append( icon );

return span;
};


export {
iconInCircle,
};

0 comments on commit 1976a3e

Please sign in to comment.