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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Directive to track when a sticky element gets pinned #2825

Open
xelaint opened this issue Jun 5, 2024 · 0 comments 路 May be fixed by #2833
Open

[FEAT] Directive to track when a sticky element gets pinned #2825

xelaint opened this issue Jun 5, 2024 · 0 comments 路 May be fixed by #2833
Assignees
Labels
feat a new feature, enhancement, or improvement package: design @daffodil/design
Milestone

Comments

@xelaint
Copy link
Member

xelaint commented Jun 5, 2024

馃挕 Feature request

Feature Name

Directive to track when a sticky element gets pinned

The Desired Behavior

A directive (DaffStickyTracker) to calculate when a sticky elements gets pinned so it can add and remove a .is-pinned class to the element. This is so that we can change styles when it's sticky and when it's not.

i.e. when the footer buttons are sticky, there should be a top box shadow on the element. When it's no longer sticky and back as a relative element on the page, the box shadow should be removed.

Your Use Case

As a designer, I would like to be able to add and remove styles on sticky elements.

Prior Work

Environment


Daffodil version: X.Y.Z
Angular version: X.Y.Z 

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

@xelaint xelaint added feat a new feature, enhancement, or improvement package: design @daffodil/design labels Jun 5, 2024
@xelaint xelaint added this to the Daffodil v1.0 milestone Jun 5, 2024
@xelaint xelaint linked a pull request Jun 7, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat a new feature, enhancement, or improvement package: design @daffodil/design
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants