Skip to content

Commit

Permalink
Changed attributes for cod-icon back to the original
Browse files Browse the repository at this point in the history
  • Loading branch information
sreidthomas committed Jul 12, 2024
1 parent 8e5ec8b commit 04f101e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/atoms/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export default class Button extends HTMLElement {
// Loading icon
const iconContainer = document.createElement('span');
const activeIcon = document.createElement('cod-icon');
activeIcon.setAttribute('icon', icon);
activeIcon.setAttribute('size', iconSize);
activeIcon.setAttribute('data-icon', icon);
activeIcon.setAttribute('data-size', iconSize);
iconContainer.appendChild(activeIcon);
btn.innerText = label;
if (iconOrder === 'left') {
Expand Down

0 comments on commit 04f101e

Please sign in to comment.