Skip to content

Conversation

@jzempel
Copy link
Member

@jzempel jzempel commented Feb 7, 2024

Description

This PR adds the following as a prerequisite for converting Garden to use floating-ui for positioned components (i.e. Menu, TooltipModal, etc):

  • getFloatingPlacements
  • getMenuPosition
  • getArrowPosition

Detail

Main focus for review should be the function signatures, with special attention to the parameters and return values.

Checklist

  • 👌 design updates will be Garden Designer approved (add the designer as a reviewer)
  • 🌐 demo is up-to-date (npm start)
  • ⬅️ renders as expected with reversed (RTL) direction
  • 🤘 renders as expected with Bedrock CSS (?bedrock)
  • 💂‍♂️ includes new unit tests. Maintain existing coverage (always >= 96%)
  • tested for WCAG 2.1 AA accessibility compliance
  • 📝 tested in Chrome, Firefox, Safari, and Edge

@jzempel jzempel requested a review from a team as a code owner February 7, 2024 23:11
@coveralls
Copy link

coveralls commented Feb 7, 2024

Coverage Status

coverage: 96.264% (+0.01%) from 96.254%
when pulling a52f60b on jzempel/placement-utils
into ccb8d60 on next.

@jzempel jzempel merged commit bad887b into next Feb 8, 2024
@jzempel jzempel deleted the jzempel/placement-utils branch February 8, 2024 17:21
jzempel added a commit that referenced this pull request Feb 8, 2024
…es (#1704)

- getFloatingPlacements()
- getMenuPosition()
- getArrowPosition()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants