fix(overlays): don't use hidesOnOutsideEsc in configs, as it disallows nested overlays (a11y concern)

This commit is contained in:
Thijs Louisse 2025-07-29 15:13:37 +02:00 committed by Thijs Louisse
parent f19befe9c4
commit fb0813bc6d
3 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/ui': minor
---
[overlays]: don't use hidesOnOutsideEsc in configs, as it disallows nested overlays (a11y concern)

View file

@ -9,7 +9,6 @@ export const withDropdownConfig = () =>
placementMode: 'local',
inheritsReferenceWidth: 'min',
hidesOnOutsideClick: true,
hidesOnOutsideEsc: true,
hidesOnEsc: true,
popperConfig: {
placement: 'bottom-start',

View file

@ -18,7 +18,6 @@ export const withTooltipConfig = ({
placementMode: 'local',
elementToFocusAfterHide: undefined,
hidesOnEsc: true,
hidesOnOutsideEsc: true,
handlesAccessibility: true,
isTooltip: true,
invokerRelation,