Skip to content

Commit 393f51d

Browse files
committed
🍬
1 parent d58de76 commit 393f51d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/components/menu/src/menu-item.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ sl-icon[name='check'] {
9797

9898
kbd {
9999
font-family: var(--sl-text-typeset-font-family-body);
100-
letter-spacing: 2px;
100+
letter-spacing: var(--sl-size-025);
101101
margin-inline-start: auto;
102102
padding-inline-start: var(--sl-size-100);
103103
}

packages/components/menu/src/menu-item.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ describe('sl-menu-item', () => {
149149
});
150150

151151
it('should have an aria-keyshortcuts attribute', () => {
152-
expect(el).to.have.attribute('aria-keyshortcuts', 'Meta+1');
152+
expect(el).to.have.attribute('aria-keyshortcuts', navigator.platform.indexOf('Mac') > -1 ? 'Meta+1' : 'Ctrl+1');
153153
});
154154

155155
it('should hide the kbd element from assistive technologies', () => {

0 commit comments

Comments
 (0)