diff --git a/src/components/atoms/Button/Button.js b/src/components/atoms/Button/Button.js index 5b480dd7..dd2f2948 100644 --- a/src/components/atoms/Button/Button.js +++ b/src/components/atoms/Button/Button.js @@ -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') {