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 styles to the demo page #187

Merged
merged 53 commits into from
May 8, 2024
Merged

Add styles to the demo page #187

merged 53 commits into from
May 8, 2024

Conversation

dvdherron
Copy link
Contributor

Related Issue(s)

Fixes #168
Reminder to add related issue(s), if available.

Steps to test/reproduce

Please explain how to best reproduce the issue and/or test the changes locally (including the pages/URLs/views/states to review).

Show me

Provide screenshots/animated gifs/videos if necessary.

Copy link

netlify bot commented Mar 14, 2024

Deploy Preview for popover-polyfill ready!

Name Link
🔨 Latest commit 003be77
🔍 Latest deploy log https://app.netlify.com/sites/popover-polyfill/deploys/663bdd8ae00bf2000895d55f
😎 Deploy Preview https://deploy-preview-187--popover-polyfill.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dvdherron
Copy link
Contributor Author

@jgerigmeyer There's still obviously some style cleanup and refining left.

I still need to:

  • Style and write descriptions for the shadowed popovers.
  • Flesh out the rest of the content for what is currently Popover 10
  • The same for the popover showcasing cascade layers
  • Remove references to popover numbers and update tests accordingly

@dvdherron dvdherron requested a review from stacyk March 19, 2024 15:31
@dvdherron
Copy link
Contributor Author

@stacyk I still need to clean up the menu, and add the prism styles to the shadow root example, but I think this is ready for an initial style review. I'm most curious for you feedback on the header, getting that large text to grow and still fit as the layout widens.

@stacyk
Copy link
Member

stacyk commented Mar 19, 2024

@stacyk I still need to clean up the menu, and add the prism styles to the shadow root example, but I think this is ready for an initial style review. I'm most curious for you feedback on the header, getting that large text to grow and still fit as the layout widens.

@dvdherron I'll check this out today! Update: I looked briefly today, I see the text changes sizes at a few breakpoints, but are we trying to minimize the gap between text and headline? I can look further tomorrow.

@dvdherron dvdherron requested a review from SondraE March 19, 2024 16:28
@dvdherron
Copy link
Contributor Author

@stacyk I still need to clean up the menu, and add the prism styles to the shadow root example, but I think this is ready for an initial style review. I'm most curious for you feedback on the header, getting that large text to grow and still fit as the layout widens.

@dvdherron I'll check this out today! Update: I looked briefly today, I see the text changes sizes at a few breakpoints, but are we trying to minimize the gap between text and headline? I can look further tomorrow.

Yeah, I think it's a matter of finding the right balance between the large text and the paragraphs that sit next to it. Like, do you see a way this could be handled better?

@dvdherron
Copy link
Contributor Author

@SondraE Looking at what's here now, would you still prefer that the header is sticky? And in the mockup, in the intro paragraph "displaying popover content" is a link. To where should that link lead?

index.html Outdated Show resolved Hide resolved
Copy link
Member

@stacyk stacyk left a comment

Choose a reason for hiding this comment

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

@dvdherron let me know if that is sorta what you are going for. Left a few code update suggestions to allow the title to grow and fill the gap a bit.

css/demo.css Outdated Show resolved Hide resolved
css/demo.css Outdated Show resolved Hide resolved
css/props.css Outdated Show resolved Hide resolved
css/demo.css Outdated Show resolved Hide resolved
SondraE

This comment was marked as resolved.

css/demo.css Outdated Show resolved Hide resolved
@dvdherron
Copy link
Contributor Author

@dvdherron Great work on this! I mostly rearranged the markup order, and fixed some formatting in the code blocks.

Speaking of the code blocks, I still think the line spacing is bigger than it would need to be in the pre elements.

I bumped the line-height down a bit in 67ee7c4. If you think it needs to be taken down some more, I can adjust.

Copy link
Member

@jgerigmeyer jgerigmeyer left a comment

Choose a reason for hiding this comment

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

Assigning to @mirisuzanne for final style review. Note that Firefox 125 now supports popovers, so to test the polyfilled styles I needed to download FF 124 from https://download-installer.cdn.mozilla.net/pub/firefox/releases/124.0.2/mac/en-US/Firefox%20124.0.2.dmg

css/demo.css Show resolved Hide resolved
Copy link
Member

@mirisuzanne mirisuzanne left a comment

Choose a reason for hiding this comment

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

A few small notes, but looking great. For me the cross-tree popover only worked in FF 124 with the polyfill, and not in my most recent Vivaldi.

I also wonder if we want some indicator at the top of the page that says if the polyfill is active or not? And if not, tells you what browser versions would need it.

css/base.css Outdated
}
}

:focus {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
:focus {
:focus-visible {

I think this is pretty safe at this point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed in 27bd5a6

index.html Outdated Show resolved Hide resolved
<button popovertarget="popover11-1" popovertargetaction="show">
Items
</button>
<a
Copy link
Member

Choose a reason for hiding this comment

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

Should we provide any indication that these are external links? Maybe use the box-with-an-arrow icon?

Copy link
Member

Choose a reason for hiding this comment

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

@dvdherron I added these arrows in 63e0fa5, but feel free to adjust/replace/style them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jgerigmeyer what you added looked great. I just adjust a few links for consistency.

@jgerigmeyer
Copy link
Member

For me the cross-tree popover only worked in FF 124 with the polyfill, and not in my most recent Vivaldi.

Yeah, I've noticed that too. From what I can tell the polyfill is doing the right thing there, but browser support for that piece is lagging behind. whatwg/html#9109

I also wonder if we want some indicator at the top of the page that says if the polyfill is active or not? And if not, tells you what browser versions would need it.

I added a note and link in 63e0fa5 -- @dvdherron please make it look better 🙏

@dvdherron
Copy link
Contributor Author

For me the cross-tree popover only worked in FF 124 with the polyfill, and not in my most recent Vivaldi.

Yeah, I've noticed that too. From what I can tell the polyfill is doing the right thing there, but browser support for that piece is lagging behind. whatwg/html#9109

I also wonder if we want some indicator at the top of the page that says if the polyfill is active or not? And if not, tells you what browser versions would need it.

I added a note and link in 63e0fa5 -- @dvdherron please make it look better 🙏

Polyfill not applied:

bild

Polyfill applied:

bild

Copy link
Member

@jgerigmeyer jgerigmeyer left a comment

Choose a reason for hiding this comment

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

Looks good! The link arrows are pretty large IMO, but I don't really care. 🚀

Copy link
Member

@mirisuzanne mirisuzanne left a comment

Choose a reason for hiding this comment

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

Changes look good. I think we could note that one of the demos doesn't work in browsers yet - but that can be a different story.

@jgerigmeyer jgerigmeyer merged commit bc9799a into main May 8, 2024
7 checks passed
@jgerigmeyer jgerigmeyer deleted the demo-styles branch May 8, 2024 20:20
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.

Improve and add styles to the demo page.
6 participants