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

fix: flyout vertical positioning #2771

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

gavinbarron
Copy link
Member

Closes #2258
Closes #2757

PR Type

  • Bugfix

Description of the changes

adjusts logic for setting height on the flyout to only apply a set height on the second pass if necessary. this ensures that any content in the flyout is given a chance to render and contribute to the flyout height before an fixed height is applied to the flyout.

PR checklist

  • Project builds (yarn build) and changes have been tested in at least two supported browsers (Edge + non-Chromium based browser)
  • All public APIs (classes, methods, etc) have been documented following the jsdoc syntax
  • Stories have been added and existing stories have been tested
  • Added appropriate documentation. Docs PR:
  • License header has been added to all new source files (yarn setLicense)
  • Contains NO breaking changes

Other information

adjusts logic for setting height on the flyout to only apply a set height on the second pass if necessary.
this ensures that any content in the flyout is given a chance to render and contribute to the flyout height before an fixed height is applied to the flyout.
@github-actions
Copy link

📖 The updated storybook is available here

1 similar comment
@github-actions
Copy link

📖 The updated storybook is available here

@gavinbarron
Copy link
Member Author

@vagpt I believe that the linked a11y issue raised has been resolved by this PR as now the flyout will not position itself outside of the bounds of the visible portion of the page.

@gavinbarron gavinbarron merged commit 45163ed into main Oct 12, 2023
10 checks passed
@gavinbarron gavinbarron deleted the fix/flyout-vertical-positioning branch October 12, 2023 20:12
@vagpt
Copy link
Collaborator

vagpt commented Oct 16, 2023

Hi @gavinbarron,

Could you please provide us updated URL again as provided PR link above is not opening and we are getting 404 error.

@gavinbarron
Copy link
Member Author

@vagpt here you go: https://mgt.dev/next/?path=/story/samples-general--localization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
3 participants