hzdg / hz-core

HZ's internal library of React Components 🚧
https://hz-core.netlify.com
0 stars 0 forks source link

Extract Sticky/Fixed Layout from 2U #42

Closed lettertwo closed 4 years ago

lettertwo commented 4 years ago

2U has a set of layout components that could be useful for creating complex sticky and fixed layouts. This is a proposal to extract those components into an hzcore package.

Is your feature request related to a problem? Please describe.

See the motivation in the 2U components' doc

Describe the solution you'd like

Extract and package 2U's sticky layout

Describe alternatives you've considered

In some simpler cases, CSS can probably suffice (via position: fixed|sticky). In more complex cases where multiple elements are stuck together, it is sometimes possible (though maybe not always feasable) to hardcode the correct offsets, z-indexes, sizes, etc, to make them work harmoniously.

Additional context

lettertwo commented 4 years ago

Closed by #54