-
Notifications
You must be signed in to change notification settings - Fork 4
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
Nav Drawer items content uses same margin even without icon before it #351
Comments
@SisIvanova can we introduce the gap property to the navdrawer, like we did in angular, here as well? |
igniteui-webcomponents/src/components/nav-drawer/styles/nav-drawer-item.base.scss Lines 28 to 31 in 2772658
This was fixed by moving the margin to a slotted icon like ::slotted(igc-icon) under the base part - two issues with that:
PS: Unless it's built into the component itself, I'd avoid targeting specific Ignite UI components is slots that if we can help it, though the item already had some of that for the icon. @simeonoff I see |
Description
Nav Drawer items content seems to use fixed margin to separate it from the icon that is still present even if there's no icon slot.
Steps to reproduce
You can simply drop the icons from the dev demos like:
Result
The item content is still using a decent size margin:

At the very least it's not consistent with what I see in Ignite UI for Angular and from what I can tell in the Material design spec as well under Anatomy > Destinations
Expected result
It'd expect the separation margin to be attached to icon itself or if the icon slot is filled so that it can be dropped when there isn't one and produce results similar to Ignite in Angular:

Unless this is done on purpose of course, because without the bolding in Bootstrap it'd be a bit hard to distinguish between headers and items I guess.
Attachments
Attach a sample if available, and screenshots, if applicable.
The text was updated successfully, but these errors were encountered: