Skip to content

Commit 9a73371

Browse files
authored
Fix tooltip on list buttons in editor incorrectly showing the keyboard shortcut requiring cmd/ctrl (#1402)
1 parent 4c4b0ef commit 9a73371

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.changeset/empty-cats-yell.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@keystatic/core': patch
3+
---
4+
5+
Fix tooltip on list buttons in editor incorrectly showing the keyboard
6+
shortcut requiring cmd/ctrl

.github/actions/setup-deps/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: 'Setup Dependencies'
22
runs:
33
using: 'composite'
44
steps:
5+
- run: npm install -g [email protected]
6+
shell: bash
7+
58
- run: corepack enable
69
shell: bash
710

packages/keystatic/src/form/fields/markdoc/editor/Toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ function ListButtons() {
706706
</EditorToolbarItem>
707707
<Tooltip>
708708
<Text>{item.label}</Text>
709-
<Kbd meta>{item.shortcut}</Kbd>
709+
<Kbd>{item.shortcut}</Kbd>
710710
</Tooltip>
711711
</TooltipTrigger>
712712
))}

0 commit comments

Comments
 (0)