From 9ab6e2ef9fea0dc25886c8762065242c0fe9e506 Mon Sep 17 00:00:00 2001 From: Shakira Reid-Thomas Date: Tue, 27 Aug 2024 11:11:30 -0400 Subject: [PATCH] Changed attributes in Alert.js back to normal --- src/components/atoms/Alert/Alert.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/atoms/Alert/Alert.js b/src/components/atoms/Alert/Alert.js index 9f152308..b142a471 100644 --- a/src/components/atoms/Alert/Alert.js +++ b/src/components/atoms/Alert/Alert.js @@ -44,15 +44,15 @@ export default class Alert extends HTMLElement { // alert attributes - const icon = this.getAttribute('icon'); + const icon = this.getAttribute('data-icon'); - const iconOrder = this.getAttribute('icon-order'); + const iconOrder = this.getAttribute('data-icon-order'); - const iconSize = this.getAttribute('icon-size'); + const iconSize = this.getAttribute('data-icon-size'); - const backgroundColor = this.getAttribute('background-color'); + const backgroundColor = this.getAttribute('data-background-color'); - const extraClasses = this.getAttribute('extra-classes'); + const extraClasses = this.getAttribute('data-extra-classes'); this.alert.role = 'alert'; let iconClass = '';