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 menu with popper example #95

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NullVoxPopuli
Copy link
Collaborator

@NullVoxPopuli NullVoxPopuli commented Oct 3, 2021

This is a breaking change, so if ya'll don't want to go along with this, that's fine by me.

the breaking change is that any consuming project must also be using ember-auto-import@v2

The demo is the same as the "Basic" Menu demo, and is only has noticeable differences on super small screens where popper starts to take control of positioning as layout constraints come in to play

<div class='flex justify-center w-screen h-full p-12 bg-gray-50'>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is menu/basic, but with PopperJS

@GavinJoyce
Copy link
Owner

the breaking change is that any consuming project must also be using ember-auto-import@v2

I think it's fine for us to make breaking changes like this 👍

FYI, it looks like there are some failing tests in CI

@NullVoxPopuli
Copy link
Collaborator Author

excellent! because ember-auto-import@v2 is a requirement for ember 4 :D

@NullVoxPopuli
Copy link
Collaborator Author

I'm not sure how any of these were passing 🤔
image

I assume most of this was copied from either the React or Vue repo?

@NullVoxPopuli
Copy link
Collaborator Author

It seems back when we were on webpack 4 (ember-auto-import@v1, a bunch of implicit non-browser behaviors were getting polyfilled)


return;
}
switch (options.state) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

best to view this file without invisible character changes

}
} catch (err) {
Error.captureStackTrace(err, assertDialog);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

captureStackTrace is a node-only API

@alexlafroscia
Copy link
Collaborator

I'm totally fine with making a breaking change and upgrading to ember-auto-import@2, but could that work be split out into a separate PR? I think that would make it easier to review the code and understand the affect.

In this PR at least, it seems that ember-auto-import is only a development dependency, so I'm not sure that would be a breaking change?

@GavinJoyce
Copy link
Owner

FYI, I've updated ember-auto-import here: #111

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.

3 participants