fix(overlays): don't use hidesOnOutsideEsc in configs, as it disallows nested overlays (a11y concern)
This commit is contained in:
parent
f19befe9c4
commit
fb0813bc6d
3 changed files with 5 additions and 2 deletions
5
.changeset/gorgeous-chefs-fly.md
Normal file
5
.changeset/gorgeous-chefs-fly.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@lion/ui': minor
|
||||
---
|
||||
|
||||
[overlays]: don't use hidesOnOutsideEsc in configs, as it disallows nested overlays (a11y concern)
|
||||
|
|
@ -9,7 +9,6 @@ export const withDropdownConfig = () =>
|
|||
placementMode: 'local',
|
||||
inheritsReferenceWidth: 'min',
|
||||
hidesOnOutsideClick: true,
|
||||
hidesOnOutsideEsc: true,
|
||||
hidesOnEsc: true,
|
||||
popperConfig: {
|
||||
placement: 'bottom-start',
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ export const withTooltipConfig = ({
|
|||
placementMode: 'local',
|
||||
elementToFocusAfterHide: undefined,
|
||||
hidesOnEsc: true,
|
||||
hidesOnOutsideEsc: true,
|
||||
handlesAccessibility: true,
|
||||
isTooltip: true,
|
||||
invokerRelation,
|
||||
|
|
|
|||
Loading…
Reference in a new issue