这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dvdherron
Copy link
Contributor

Description

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

image

Provide screenshots/animated gifs/videos if necessary.

@netlify
Copy link

netlify bot commented Sep 20, 2022

Deploy Preview for anchor-polyfill ready!

Name Link
🔨 Latest commit 67d7bac
🔍 Latest deploy log https://app.netlify.com/sites/anchor-polyfill/deploys/6356ffb0a996eb00096eb4ff
😎 Deploy Preview https://deploy-preview-29--anchor-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 settings.

@dvdherron
Copy link
Contributor Author

@dvdherron
Copy link
Contributor Author

@jgerigmeyer With the polyfill applied, what should the position-fallback version look like?

It currently looks like this:
bild

Also, for the anchor positioning with scroll version, is there a way we can set the scroll position so that the anchor and floats are visible?

Jonny, I think you mentioned us possibly changing how these are shown (with a dropdown?). Were you thinking of doing that work here or in another story?

* main:
  tests
  Fix bugs with bottom/right positioning; use util fns from floating-ui
@jgerigmeyer
Copy link
Member

@jgerigmeyer With the polyfill applied, what should the position-fallback version look like?

I think that changed slightly with the PR I just merged in... Now it looks like this, which is currently "correct" for what's defined:

Screen Shot 2022-09-22 at 3 07 54 PM

Also, for the anchor positioning with scroll version, is there a way we can set the scroll position so that the anchor and floats are visible?

Yes! Please feel free to edit any of the examples to make them clearer -- I haven't put much thought into them at all.

Jonny, I think you mentioned us possibly changing how these are shown (with a dropdown?). Were you thinking of doing that work here or in another story?

Your call -- that was just an idea. Maybe a slight preference for that being a new PR?

@dvdherron

jgerigmeyer and others added 3 commits September 23, 2022 16:32
* main:
  Point unpkg to ESM build
  prepare for 0.0.1-alpha.0 release
  Wait for window.load before fetching CSS
  add umd build with fn api
  cleanup
  lint
  Run polyfill by default; expose fn API as alternative.
@dvdherron
Copy link
Contributor Author

@stacyk Would love your feedback on how this is looking so far. The overall layout/look in general and how you might approach showing the "Anchor Positioning (with scroll)" example so that it starts with the anchor visible, in particular.

@dvdherron dvdherron requested a review from stacyk October 6, 2022 15:08
jgerigmeyer and others added 11 commits October 6, 2022 12:12
* main:
  Add (skipped) tests for upcoming features
  cleanup types
  refactor to remove unneeded ifs and elses
  fix failing test
  check isInset on properties
  review
  initial commit
* main:
  chore(deps): Automated dependency upgrades
  address review
  Use standard (serve/lint) commands
* main:
  Adding custom data attribute
  review
  Parse inline styles
@dvdherron
Copy link
Contributor Author

@stacyk I fixed the issues with color accessibility, alpha order, and button :hover/:focus states in 8d66cef

@jgerigmeyer Is there an attribute that I can hook into when the polyfill is turned on? Say, if we wanted to change the button text to ´Polyfill Applied´?

Yesterday Stacy mentioned that it could possibly be confusing to use "Float" for the element being positioned relative to the anchor. Some might expect these elements to be positioned with the Css property 'float'. I don't know if we need to decide on whether to change this now, but could something like 'Positioned Element' work better?

@jgerigmeyer
Copy link
Member

@jgerigmeyer Is there an attribute that I can hook into when the polyfill is turned on? Say, if we wanted to change the button text to ´Polyfill Applied´?

Done in 9b73d03

Yesterday Stacy mentioned that it could possibly be confusing to use "Float" for the element being positioned relative to the anchor. Some might expect these elements to be positioned with the Css property 'float'. I don't know if we need to decide on whether to change this now, but could something like 'Positioned Element' work better?

I'm fine with "Target" or "Positioned" or whatever 👍

@stacyk stacyk marked this pull request as ready for review October 11, 2022 19:28
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.

I left a few style suggestions but they aren't critical. I didn't review fully for accessibility at this time.

public/demo.css Outdated
Comment on lines 82 to 83
padding: 2em 0;
justify-content: center;
Copy link
Member

Choose a reason for hiding this comment

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

maybe reorder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

public/demo.css Outdated
grid-template:
'heading heading heading' min-content
'. elements .' min-content/minmax(0, 5rem) 1fr minmax(0, 5rem);
gap: 2rem;
Copy link
Member

Choose a reason for hiding this comment

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

Another reorder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reordered

@dvdherron
Copy link
Contributor Author

@stacyk Applied disabled styles to the "Apply Polyfill" button. I think this covers everything if you to give this a final 👍🏽

@dvdherron dvdherron requested a review from stacyk October 14, 2022 16:50
Comment on lines +121 to +123
a:any-link {
color: var(--action);
}
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 think just one more thing and then we are good here... for this to be accessible while in light mode on the header and footer, the background lime would have to be really light, like #dce9cf. I don't know if it needs the gradient but you can make that call. Everything else looks good.

Copy link
Contributor Author

@dvdherron dvdherron Oct 17, 2022

Choose a reason for hiding this comment

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

@stacyk fixed in e330cdc

I darkened the text a bit and switched out the gradient in light mode for just one lighter color:

image

And used a darker gradient in dark mode:
image

@dvdherron dvdherron requested a review from stacyk October 17, 2022 13:20
dvdherron and others added 2 commits October 18, 2022 18:52
* main:
  chore(deps): Automated dependency upgrades
@jgerigmeyer jgerigmeyer merged commit f88ef63 into main Oct 24, 2022
@jgerigmeyer jgerigmeyer deleted the add-styles branch October 24, 2022 21:14
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.

4 participants