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 an Input to the Drawer component to have more flexibility over if content is pushed or covered on hover #674

Open
alyanaseer-eaton opened this issue Aug 2, 2024 · 1 comment
Labels
brightlayer-ui Used to identify Brightlayer UI platform issues for easy filtering enhancement Request for improvement or new feature innersource

Comments

@alyanaseer-eaton
Copy link

Describe the desired feature/functionality

Currently there is no easy/clean way to specify a particular behaviour when hovering over the Drawer component. It would be interesting to give developers the option to choose between covering the content or pushing the content when the Drawer component is hovered.

Additional Context (where / how would this be used)

This ask comes from the CYME team who'd like to support a persistent menu (which on click of the hamburger button would open the drawer and push the content) but a sort of temporary hybrid on hover (where the menu would hide the content).

Is this request related to a current issue?

Relates to a previously closed task, marked as "won't do" (#446)

Suggested implementation details

Could be something like adding a hover property like: hoverStyle: 'content-cover' | 'content-push'. In the case of content-cover we should set this styling:

.blui-drawer-layout-nav-content {
    margin-left: 3.5rem !important;
}
@alyanaseer-eaton alyanaseer-eaton added brightlayer-ui Used to identify Brightlayer UI platform issues for easy filtering enhancement Request for improvement or new feature needs-review Issues that we would like to revisit/review labels Aug 2, 2024
@alyanaseer-eaton
Copy link
Author

This task will be worked on by a CYME developer

@shubham-eaton shubham-eaton added innersource and removed needs-review Issues that we would like to revisit/review labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brightlayer-ui Used to identify Brightlayer UI platform issues for easy filtering enhancement Request for improvement or new feature innersource
Development

No branches or pull requests

2 participants