Skip to content

Commit

Permalink
feat(action-menu): allow icon customization
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Oct 10, 2019
1 parent aa788b1 commit cffd49a
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions packages/action-menu/src/action-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,19 @@ export class ActionMenu extends Dropdown {
protected get buttonContent(): TemplateResult[] {
return [
html`
<svg
viewBox="0 0 36 36"
class="icon"
focusable="false"
aria-hidden="true"
>
<circle cx="17.8" cy="18.2" r="3.4"></circle>
<circle cx="29.5" cy="18.2" r="3.4"></circle>
<circle cx="6.1" cy="18.2" r="3.4"></circle>
</svg>
<slot name="icon">
<svg
slot="icon"
viewBox="0 0 36 36"
class="icon"
focusable="false"
aria-hidden="true"
>
<circle cx="17.8" cy="18.2" r="3.4"></circle>
<circle cx="29.5" cy="18.2" r="3.4"></circle>
<circle cx="6.1" cy="18.2" r="3.4"></circle>
</svg>
</slot>
${this.label
? html`
<div id="label">${this.label}</div>
Expand Down

0 comments on commit cffd49a

Please # to comment.