Skip to content

axa-modal: allow content scrollable #2422

@MarekLacoAXA

Description

@MarekLacoAXA

Hi! pls. allow the content of axa-modal to be scrollable, if content height exceeds the modal height.

(OR maybe better: expand the contents automatically to its full height)

Currently there is no scrollbar which confuses users when there's more content.

Thanks!


Here's a workaround I am using now in React to show vertical scrollbar.

/**
 * Within <axa-modal> makes content vertically scrollable
 */
export const ModalContentScrollable: React.FC<React.PropsWithChildren> = ({ children }) => {
  return (
    <div style={{ maxHeight: '100%', overflowY: 'auto', overflowX: 'hidden' }}>{children}</div>
  );

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions