Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axa-modal: allow content scrollable #2422

Open
MarekLacoAXA opened this issue Mar 10, 2023 · 0 comments
Open

axa-modal: allow content scrollable #2422

MarekLacoAXA opened this issue Mar 10, 2023 · 0 comments

Comments

@MarekLacoAXA
Copy link
Contributor

MarekLacoAXA commented Mar 10, 2023

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>
  );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant