2
0

Improve credentials dropdown accessibility if long name

This commit is contained in:
Baptiste Arnaud
2023-06-01 10:37:04 +02:00
parent b6e5002a56
commit bc90c9c81e

View File

@ -98,7 +98,7 @@ export const CredentialsDropdown = ({
}
return (
<Menu isLazy placement="bottom-end" matchWidth>
<Menu isLazy>
<MenuButton
as={Button}
rightIcon={<ChevronLeftIcon transform={'rotate(-90deg)'} />}
@ -111,7 +111,7 @@ export const CredentialsDropdown = ({
{currentCredential ? currentCredential.name : defaultCredentialsLabel}
</Text>
</MenuButton>
<MenuList maxW="500px">
<MenuList>
<Stack maxH={'35vh'} overflowY="scroll" spacing="0">
{defaultCredentialLabel && (
<MenuItem