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

Drawer #4171

Open
Amarendra2627 opened this issue Jun 10, 2020 · 1 comment
Open

Drawer #4171

Amarendra2627 opened this issue Jun 10, 2020 · 1 comment

Comments

@Amarendra2627
Copy link

How do i reduce the height of the Drawer component?

@ucg8j
Copy link

ucg8j commented Sep 27, 2021

Warning, this is hacky! However, I couldn't find in the docs anyway to pass this in nicely. Blueprint would be much more usable if the docs contained a few more examples.

Add some css to specify how many px you want to reduce the height by:
./drawerCustom.css

.bp3-drawer-mycss {
  top: 50px !important
}

Then in your component use it
./yourDrawerComponent.tsx

import './drawerCustom.css'
  <Drawer
        className="bp3-drawer-athena"
        ...

Also, I'd suggest a slightly more expressive issue in future e.g. 'Drawer' -> 'How to adjust height on Drawer Component?'

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

No branches or pull requests

2 participants