Commit 483b752 1 parent dea6cc7 commit 483b752 Copy full SHA for 483b752
File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,18 @@ export default function DocumentActions() {
42
42
? __ ( 'template part' )
43
43
: __ ( 'template' ) ;
44
44
45
+ const isMac = / M a c | i P o d | i P h o n e | i P a d / . test ( window . navigator . platform ) ;
46
+
45
47
return (
46
48
< div className = "edit-site-document-actions" >
47
- < span > </ span >
49
+ < span className = "edit-site-document-actions__left" > </ span >
48
50
< Text
49
51
size = "body"
50
52
as = "h1"
51
53
className = "edit-site-document-actions__title"
52
54
>
53
55
< Button onClick = { ( ) => openCommandCenter ( ) } >
56
+ < BlockIcon icon = { icon } />
54
57
< VisuallyHidden as = "span" >
55
58
{ sprintf (
56
59
/* translators: %s: the entity being edited, like "template"*/
@@ -61,7 +64,12 @@ export default function DocumentActions() {
61
64
{ getTitle ( ) }
62
65
</ Button >
63
66
</ Text >
64
- < BlockIcon icon = { icon } />
67
+ < Button
68
+ className = "edit-site-document-actions__shortcut"
69
+ onClick = { openCommandCenter }
70
+ >
71
+ { isMac ? '⌘' : 'Ctrl' } K
72
+ </ Button >
65
73
</ div >
66
74
) ;
67
75
}
Original file line number Diff line number Diff line change 34
34
justify-content : center ;
35
35
}
36
36
}
37
+
38
+ .edit-site-document-actions__shortcut {
39
+ color : $gray-700 ;
40
+ & :hover {
41
+ color : $gray-700 ;
42
+ }
43
+ }
44
+
45
+ .edit-site-document-actions__left {
46
+ min-width : $button-size ;
47
+ }
You can’t perform that action at this time.
0 commit comments