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

add popover polyfill #73

Merged
merged 2 commits into from
Feb 25, 2025
Merged

Conversation

keithamus
Copy link
Member

Both Primer ViewComponent & Primer React import & depend on the popover polyfill in order to offer functionality like tooltips and menus. This isn't properly reflected in our compatibility table, nor is it properly enumerated as a dependency here.

I'd like us to steer Primer toward using this browser-support library instead of individual polyfills, so better align with the goals of the monolith. So this PR introduces the popover polyfill as a dependency of this library, so that we can migrate the Primer libraries to using this library.

@Copilot Copilot bot review requested due to automatic review settings February 24, 2025 09:29
@keithamus keithamus requested a review from a team as a code owner February 24, 2025 09:29
@keithamus keithamus requested a review from jibrang February 24, 2025 09:29

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR adds the popover polyfill as a dependency to support functionality like tooltips and menus in Primer libraries.

  • Added a polyfill import in src/index.ts
  • Updated the polyfills object to expose the popover polyfill

Reviewed Changes

File Description
src/index.ts Imported the popover polyfill and added it to exports

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@keithamus keithamus merged commit 0b64543 into github:main Feb 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants