fix(menus): prevent menu label text from being selectable
This commit is contained in:
@@ -128,7 +128,12 @@ export function MenuSeparator() {
|
||||
|
||||
export function MenuLabel({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<div className="px-3 py-1 text-[10px] uppercase tracking-[0.18em] text-gray-600">{children}</div>
|
||||
<div className="px-3 py-1 text-[10px] uppercase tracking-[0.18em] text-gray-600"
|
||||
style={{
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
}}
|
||||
>{children}</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user