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 committed Sep 20, 2024
1 parent 3f56bf1 commit 08a0a11
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/auro-pane.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { LitElement, html } from "lit";
import { classMap } from 'lit/directives/class-map.js';
import { ifDefined } from 'lit/directives/if-defined.js';

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

import dayjs from 'dayjs/esm/index.js';

import styleCss from './style-css.js';
Expand All @@ -34,6 +36,11 @@ export class AuroPane extends LitElement {

this.disabled = false;
this.selected = false;

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

static get properties() {
Expand All @@ -58,6 +65,11 @@ export class AuroPane extends LitElement {
];
}

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

/**
* Internal method to parse the date attribute.
* @private
Expand Down

0 comments on commit 08a0a11

Please sign in to comment.