Skip to content

[EuiPopoverFooter] Mysteriously receives wrong padding value from EuiPopoverPanelContext #6695

@Zacqary

Description

@Zacqary

Noticed a UI issue in elastic/kibana#152398 that I was able to track down to EuiPopoverFooter's use of EuiPopoverPanelContext:

const { paddingSize: panelPadding } = useContext(EuiPopoverPanelContext);

The margin-block and margin-inline values suddenly get set to null, which would indicate the EuiPopoverPanelContext is sending a padding value of none, even though nothing in our usage of the EUI elements actually changed the padding sizes at any point.

I'm so confused by this that the only thing I can think of is to make a Replay.io of the bug happening. Maybe someone with more knowledge of EUI can get in the devtools and figure it out.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions