Skip to content

Commit

Permalink
perf: update to support latest version of auro-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 committed Nov 5, 2024
1 parent ca34000 commit 0a92c76
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 17 deletions.
6 changes: 3 additions & 3 deletions apiExamples/iconOnlySlim.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<auro-button aria-label="home-filled" iconOnly slim>
<auro-icon customColor customSize category="interface" name="home-filled" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="home-filled" slot="icon"></auro-icon>
</auro-button>
<auro-button aria-label="arrow-left" variant="secondary" iconOnly slim>
<auro-icon customColor customSize category="interface" name="arrow-left" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="arrow-left" slot="icon"></auro-icon>
</auro-button>
<auro-button aria-label="heart-filled" variant="tertiary" iconOnly slim>
<auro-icon customColor customSize category="interface" name="heart-filled" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="heart-filled" slot="icon"></auro-icon>
</auro-button>
1 change: 1 addition & 0 deletions demo/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
</script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-alert@latest/dist/auro-alert__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>

<script src="https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js"></script>
Expand Down
12 changes: 6 additions & 6 deletions demo/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@ Be sure to use the `customColor` and `customSize` attributes on the `auro-icon`
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/iconOnlySlim.html) -->
<!-- The below content is automatically added from ./../../apiExamples/iconOnlySlim.html -->
<auro-button aria-label="home-filled" iconOnly slim>
<auro-icon customColor customSize category="interface" name="home-filled" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="home-filled" slot="icon"></auro-icon>
</auro-button>
<auro-button aria-label="arrow-left" variant="secondary" iconOnly slim>
<auro-icon customColor customSize category="interface" name="arrow-left" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="arrow-left" slot="icon"></auro-icon>
</auro-button>
<auro-button aria-label="heart-filled" variant="tertiary" iconOnly slim>
<auro-icon customColor customSize category="interface" name="heart-filled" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="heart-filled" slot="icon"></auro-icon>
</auro-button>
<!-- AURO-GENERATED-CONTENT:END -->
</div>
Expand All @@ -284,13 +284,13 @@ Be sure to use the `customColor` and `customSize` attributes on the `auro-icon`

```html
<auro-button aria-label="home-filled" iconOnly slim>
<auro-icon customColor customSize category="interface" name="home-filled" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="home-filled" slot="icon"></auro-icon>
</auro-button>
<auro-button aria-label="arrow-left" variant="secondary" iconOnly slim>
<auro-icon customColor customSize category="interface" name="arrow-left" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="arrow-left" slot="icon"></auro-icon>
</auro-button>
<auro-button aria-label="heart-filled" variant="tertiary" iconOnly slim>
<auro-icon customColor customSize category="interface" name="heart-filled" slot="icon"></auro-icon>
<auro-icon customColor category="interface" name="heart-filled" slot="icon"></auro-icon>
</auro-button>
```
<!-- AURO-GENERATED-CONTENT:END -->
Expand Down
2 changes: 1 addition & 1 deletion demo/api.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/index.min.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ slot {
// auro-button--iconOnly
&--iconOnly {
::slotted(auro-icon) {
width: var(--ds-size-300, $ds-size-300);
height: var(--ds-size-300, $ds-size-300);
--ds-auro-icon-size: var(--ds-size-300, $ds-size-300);
}

padding: 0 var(--ds-size-100, $ds-size-100);
Expand All @@ -247,8 +246,7 @@ slot {
// auro-button--iconOnlySlim
&--iconOnlySlim {
::slotted(auro-icon) {
width: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50));
height: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50));
--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50));
}

padding: 0 var(--ds-size-50, $ds-size-50);
Expand All @@ -268,8 +266,7 @@ slot {
transition: all 300ms ease-out;

::slotted(auro-icon) {
width: var(--ds-size-300, $ds-size-300);
height: var(--ds-size-300, $ds-size-300);
--ds-auro-icon-size: var(--ds-size-300, $ds-size-300);
}
}
}
Expand Down

0 comments on commit 0a92c76

Please sign in to comment.