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 support state classes for parent element #187 #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ibrahimrahhal
Copy link

adding state classes support for parent elements

Copy link
Owner

@yowainwright yowainwright left a comment

Choose a reason for hiding this comment

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

Thanks for your consideration @Ibrahimrahhal. 🙏

See my comment in the PR.

Also, there will need to be tests before I can approve.

Thanks!!! 🙂

@@ -350,7 +356,8 @@ class Stickybits {
// Only apply new styles if the state has changed
if (state === it.state && stateChange === it.stateChange) return
rAF(() => {
const stateStyles = {
const stateStyles = { };
stateStyles.element = {
Copy link
Owner

Choose a reason for hiding this comment

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

This is a breaking change.

It looks like the updated parent class [stickyParent] could be added below line 361 within the classes object (also for adding the other parent css classes).

This change will simplify the rest of the PR.

Copy link
Author

@Ibrahimrahhal Ibrahimrahhal Feb 26, 2021

Choose a reason for hiding this comment

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

@yowainwright Agree! I'll do the change & resubmit a review. Thanks

Copy link
Owner

Choose a reason for hiding this comment

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

Thank you!!! 🙏

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.

2 participants