-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add dropdown demo #1
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
base: main
Are you sure you want to change the base?
Conversation
|
@jamesnw I have some style cleanup edits I thought would be easier to do locally. Could you grant me access here? |
|
@dvdherron Whoops, sorry- you should have access now! |
|
@stacyk This is ready for style review whenever you're ready |
✅ Deploy Preview for oddbaseline ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@jamesnw The entry and exit transitions are working fine on the outer popover. Haven't figured out yet why the exit animation isn't working on the nested popovers though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/dropdown/style.css
Outdated
| opacity var(--slow), | ||
| inset var(--fast), | ||
| overlay var(--slow) allow-discrete, | ||
| display var(--slow) allow-discrete; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't there an issue with allow-discrete and Firefox on the CQ demo? Does that apply here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but I'm not seeing the exit animation in Chrome either. Anything obvious sticking out to you @stacyk?
| const formerLink = document.querySelector("[aria-current]"); | ||
| if (formerLink) formerLink.removeAttribute("aria-current"); | ||
|
|
||
| const linkToRoute = document.querySelector(`[href="${newPage}"]`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what's happening, but this line seems to be crashing in Safari. I'll look into this more.
Seems like Safari requires |
This is defined on |
| position-try-fallbacks: flip-inline; | ||
| inline-size: max-content; | ||
| min-inline-size: anchor-size(); | ||
| inset-block-start: var(--outer-popover-inset, var(--popover-offset)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inset here and in nested seems to be breaking Safari somehow? Is it actually needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking into this, but it's what we're using to slide the outer popovers down and the nested popovers horizontally. I'll see if there's a fix or if it can be done a different way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don’t do too much with this yet- I’d like to figure out why this is breaking Safari first
does this fix it? 5818b8f I have only tested on an older version of Safari on Saucelabs and it looks fine there. |

Run
npx http-server .Open http://localhost:8080/src/dropdown