Skip to content

Commit 228d616

Browse files
committed
icon
1 parent ff7133a commit 228d616

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/pg/menuItemIcon/menuItemIcon.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,8 @@
7171

7272
[part=button]:focus-visible:not(:hover)::after {
7373
background: var(--pg-focus-background-color, rgb(79, 143, 249, 0.1));
74+
}
75+
76+
[part=icon] {
77+
margin-inline-end: 0.25rem;
7478
}

src/pg/menuItemIcon/menuItemIcon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class PgMenuItemIcon extends HTMLElement {
4141
}
4242

4343
connectedCallback() {
44-
this.$label.addEventListener('click', () => {
44+
this.$button.addEventListener('click', () => {
4545
this.checked = true;
4646
this.dispatchEvent(new CustomEvent('select', {
4747
detail: { index: this.index }

0 commit comments

Comments
 (0)