Skip to content

Commit

Permalink
feat: add tag name as attribute when custom registered
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 authored and jason-capsule42 committed Oct 4, 2024
1 parent 225dfa5 commit 6b846d2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/componentBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import styleUnformattedCss from './style-unformatted-css.js';
import colorCss from "./color-css.js";
import tokensCss from "./tokens-css.js";

import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';

import { AuroDependencyVersioning } from '@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs';

import { AuroButton } from '@aurodesignsystem/auro-button/src/auro-button.js';
Expand Down Expand Up @@ -67,6 +69,12 @@ export default class ComponentBase extends LitElement {
* @private
*/
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);


/**
* @private
*/
this.runtimeUtils = new AuroLibraryRuntimeUtils();
}

static get properties() {
Expand All @@ -87,6 +95,9 @@ export default class ComponentBase extends LitElement {
}

firstUpdated() {
// Add the tag name as an attribute if it is different than the component name
this.runtimeUtils.handleComponentTagRename(this, 'auro-dialog');

const slot = this.shadowRoot.querySelector("#footer"),
slotWrapper = this.shadowRoot.querySelector("#footerWrapper");

Expand Down

0 comments on commit 6b846d2

Please sign in to comment.