carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Sidebar to accept sticky content

Open rawlmp opened this issue 2 years ago • 3 comments

Desired behaviour

We need the possibility to attach a sticky content (ouside header) in order to keep it fixed in the sidebar.

Maybe a slot (fixedContent) will be nice.

Current behaviour

All the content is in the same slot and scrollable when the content height exceeds the Sidebar height.

Suggested Solution

SBS-40450

CodeSandbox or Storybook URL

No response

Anything else we should know?

We have a Figma resource created by SD. I can't paste here any reference to it.

Confidentiality

  • [X] I confirm there is no confidential or commercially sensitive information included.

rawlmp avatar Aug 18 '22 08:08 rawlmp

Hi @harpalsingh @ljemmo, we have checked the figma designs related to the above ticket, it seems like a lot of thought has been put into this to address some common issues. Is this something that has been officially approved by UX to introduce into DS?

Parsium avatar Aug 30 '22 13:08 Parsium

@rawlmp Can you share the figma so that i can review?

ljemmo avatar Aug 31 '22 16:08 ljemmo

It is already possible to pass in Box components which support the position interface and therefore can be made sticky. I'm not sure we should add a specific prop as a compositional approach will allow implementing teams to be flexible

https://codesandbox.io/s/sidebar-with-sticky-content-vupnzz

edleeks87 avatar Sep 30 '22 16:09 edleeks87

Hi @rawlmp, does the codesandbox @edleeks87 had shared help your issue? :)

Parsium avatar Oct 04 '22 13:10 Parsium

Ok. Let me investigate after updating carbon to the proper version... We are working with 110.1.1 yet and this was included in 110.2.0.

I'll get you in touch

rawlmp avatar Oct 06 '22 09:10 rawlmp

Hi @rawlmp, do you have any updates on this?

Parsium avatar Oct 25 '22 13:10 Parsium

Hi @rawlmp did you get a chance to investigate this? I believe we have an issue with inputs and sticky content so if you're happy with it I'd like to close this issue in favour of https://github.com/Sage/carbon/issues/5572

edleeks87 avatar Nov 03 '22 10:11 edleeks87

Closing in favour of #5572, please re-open if needed

edleeks87 avatar Nov 08 '22 11:11 edleeks87