Open the Share access menu above the dialog so both options can be picked.
The listbox was clipped inside the sheet, sat at 24px, and ignored arrow keys, so Anyone with the link could not be chosen by mouse or touch.
This commit is contained in:
1 parent
2dfc365dbd
commit
3a264ac2df
9 files changed
+264
-56
No files matched your search
@@ -13,8 +13,10 @@ const SelectOptionContainer = forwardRef<HTMLDivElement, SelectOptionProps>(
|
||||
{
|
||||
children,
|
||||
selected = false,
|
||||
highlighted = false,
|
||||
disabled = false,
|
||||
className = "",
|
||||
id,
|
||||
onClick,
|
||||
size: sizeProp = "medium",
|
||||
...props
|
||||
@@ -35,15 +37,17 @@ const SelectOptionContainer = forwardRef<HTMLDivElement, SelectOptionProps>(
|
||||
}
|
||||
};
|
||||
|
||||
const active = selected || highlighted;
|
||||
const itemClasses = `
|
||||
flex items-center justify-between
|
||||
px-[8px] py-[4px]
|
||||
min-h-11 px-[8px] py-2
|
||||
md:min-h-0 md:py-[4px]
|
||||
text-[var(--color-content-default-brand-primary)]
|
||||
${getTextSize()}
|
||||
cursor-pointer
|
||||
transition-colors duration-150
|
||||
${
|
||||
selected
|
||||
active
|
||||
? "bg-[var(--color-surface-default-secondary)] rounded-[var(--radius-300)]"
|
||||
: ""
|
||||
}
|
||||
@@ -85,6 +89,7 @@ const SelectOptionContainer = forwardRef<HTMLDivElement, SelectOptionProps>(
|
||||
disabled={disabled}
|
||||
className={className}
|
||||
itemClasses={itemClasses}
|
||||
optionId={id}
|
||||
handleClick={handleClick}
|
||||
handleKeyDown={handleKeyDown}
|
||||
{...props}
|
||||
|
||||
Reference in new issue
Block a user