Skip to content

Commit 9f1e539

Browse files
committed
CommandPalette - Update input padding
1 parent 988d4ec commit 9f1e539

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/CommandPalette/CommandButtonRow.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ export const CommandButtonRow: FC<CommandButtonRowProps> = ({
1111
...props
1212
}) => {
1313
return (
14-
<button type="button" {...props} className="command-palette-row">
14+
<button
15+
type="button"
16+
{...props}
17+
className="command-palette-row"
18+
tabIndex={-1}
19+
>
1520
<span className="command-name">{children}</span>
1621
<span>
1722
{shortCut.map(shortcut => (

src/CommandPalette/CommandPalette.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ button.command-palette-row span > *:not(:last-child) {
8585
box-sizing: border-box;
8686
width: 100%;
8787
font-size: 24px;
88-
padding: 4px;
88+
padding: 8px;
8989
}
9090

9191
.command-palette-input-row input:focus {

0 commit comments

Comments
 (0)