Preserve dropdown trigger button background when menu is open

This commit is contained in:
Gregory Schier
2025-01-13 12:28:31 -08:00
parent 4479164321
commit 6719573b2b
2 changed files with 16 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button
ref,
) {
const hotkeyTrigger = useFormattedHotkey(hotkeyAction ?? null)?.join('');
const fullTitle = hotkeyTrigger ? `${title} ${hotkeyTrigger}` : title;
const fullTitle = hotkeyTrigger ? `${title ?? ''} ${hotkeyTrigger}`.trim() : title;
const classes = classNames(
className,