-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Sidebar: Undefined behavior for items with no icon when collapsed #81
Comments
@tulup-conner I like the idea of having the |
Cool, I can add this to my todo I think what makes the most sense is to add a collapseBehavior="collapse|hide" so users can decide |
…mesberg#81 `Sidebar`s can now be created with: ```js <Sidebar collapseBehavior="hide">...</Sidebar> ``` To completely hide the `Sidebar` when collapsed, instead of displaying icons. This is useful if you are not adding icons to yours.
…mesberg#81 `Sidebar`s can now be created with: ```js <Sidebar collapseBehavior="hide">...</Sidebar> ``` To completely hide the `Sidebar` when collapsed, instead of displaying icons. This is useful if you are not adding icons to yours.
…mesberg#81 `Sidebar`s can now be created with: ```js <Sidebar collapseBehavior="hide">...</Sidebar> ``` To completely hide the `Sidebar` when collapsed, instead of displaying icons. This is useful if you are not adding icons to yours.
…mesberg#81 `Sidebar`s can now be created with: ```js <Sidebar collapseBehavior="hide">...</Sidebar> ``` To completely hide the `Sidebar` when collapsed, instead of displaying icons. This is useful if you are not adding icons to yours.
…mesberg#81 `Sidebar`s can now be created with: ```js <Sidebar collapseBehavior="hide">...</Sidebar> ``` To completely hide the `Sidebar` when collapsed, instead of displaying icons. This is useful if you are not adding icons to yours.
After looking at this Flowbite Pro design, the correct behavior would be to pull the first letter of the text label and capitalize it: https://www.figma.com/file/U3v0je4no1JpE8sCud1pPZ/Flowbite-Pro-v2.1.0?node-id=3279%3A34616 So we should do that. I can look into this. |
…th no `icon` resolve themesberg#81
Describe the bug
When I create a
Sidebar
with items that do not have an icon, and then collapse theSidebar
, nothing shows up.To Reproduce
Steps to reproduce the behavior:
Sidebar
:Expected behavior
I can't find the expected behavior on flowbite.com, so I guess there isn't one yet?
A few options...
collapsed
, hide theSidebar
completelycollapseBehavior="hide|icons"
Screenshots
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: