Skip to content

Commit

Permalink
perf: add related build changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed Dec 3, 2024
1 parent ebc729b commit 007a1e4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected]/dist/tokens/CSSCustomProperties.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected]/dist/bundled/essentials.css" />
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected].2/dist/auro-icon__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected].3/dist/auro-icon__bundled.js" type="module"></script>
```

<!-- AURO-GENERATED-CONTENT:END -->
Expand Down
7 changes: 7 additions & 0 deletions demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,13 @@ class AuroIcon extends BaseIcon {
this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
}

/**
* @returns {void} Exposes CSS parts for styling from parent components.
*/
exposeCssParts() {
this.setAttribute('exportparts', 'iconSvg:svg');
}

// function that renders the HTML and CSS into the scope of the component
render() {
const a11y = {
Expand Down
7 changes: 7 additions & 0 deletions demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,13 @@ class AuroIcon extends BaseIcon {
this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
}

/**
* @returns {void} Exposes CSS parts for styling from parent components.
*/
exposeCssParts() {
this.setAttribute('exportparts', 'iconSvg:svg');
}

// function that renders the HTML and CSS into the scope of the component
render() {
const a11y = {
Expand Down

0 comments on commit 007a1e4

Please sign in to comment.