-
-
Notifications
You must be signed in to change notification settings - Fork 15
Add styles #29
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 #29
Conversation
✅ Deploy Preview for anchor-polyfill ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
@jgerigmeyer With the polyfill applied, what should the 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
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:
Yes! Please feel free to edit any of the examples to make them clearer -- I haven't put much thought into them at all.
Your call -- that was just an idea. Maybe a slight preference for that being a new PR? |
* 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.
|
@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. |
* 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
…tioning into add-styles
* main: Adding custom data attribute review Parse inline styles
…tioning into add-styles
|
@stacyk I fixed the issues with color accessibility, alpha order, and button @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? |
Done in 9b73d03
I'm fine with "Target" or "Positioned" or whatever 👍 |
stacyk
left a comment
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.
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
| padding: 2em 0; | ||
| justify-content: center; |
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.
maybe reorder?
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.
fixed
public/demo.css
Outdated
| grid-template: | ||
| 'heading heading heading' min-content | ||
| '. elements .' min-content/minmax(0, 5rem) 1fr minmax(0, 5rem); | ||
| gap: 2rem; |
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.
Another reorder
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.
reordered
|
@stacyk Applied disabled styles to the "Apply Polyfill" button. I think this covers everything if you to give this a final 👍🏽 |
| a:any-link { | ||
| color: var(--action); | ||
| } |
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.
@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.
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.
* main: chore(deps): Automated dependency upgrades
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
Provide screenshots/animated gifs/videos if necessary.