design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Global Navigation Bar: Support optional right-aligned icons

Open mbeard opened this issue 10 years ago • 9 comments

screenshot 2016-06-27 12 43 29

mbeard avatar Jun 27 '16 17:06 mbeard

@mbeard can you explain what is needed better?

Is the image showing what currently exists? Or what should be?

chriscorwin avatar Jun 27 '16 18:06 chriscorwin

This image is showing what needs to exist.

As a bit of "context", some apps in Marketing Cloud have additional app-level navigation beyond just menus (Social Studio + Advertising Studio are two such examples). In order to facilitate a deeper integration, we need to support additional functionality in context bar so they can abandon their 3rd-level of navigation.

So we need to allow optional icons to be rendered in the context bar for a specific app context. When these icons are selected, they would render a corresponding menu item (similar to how actions behave in the header).

mbeard avatar Jun 27 '16 18:06 mbeard

Also note the "Northern Trail Outfitters" element to the right of the app name (Social Studio), but before the app-menu items. This is an optional "workspace" switcher for Social Studio / Advertising Studio that is needed.

mbeard avatar Jun 29 '16 22:06 mbeard

Should be at least partially fixed by #397 and #400. @chriscorwin can you please look into this and verify what is needed and whether it will work?

tweettypography avatar Jul 11 '16 18:07 tweettypography

I'm still confused about this @mbeard and @tweettypography

In what way is the icon to the left of NTO "right-aligned" ?

What needs to be changed to support... whatever it is that isn't supported right now.

Am I just totally thick? It seems to me that the I could have made a GNB that looks like the above one two weeks ago, with no changes to the React component.

chriscorwin avatar Jul 19 '16 11:07 chriscorwin

As a bit of "context",

LOL, I see what you did there @mbeard

chriscorwin avatar Jul 19 '16 12:07 chriscorwin

@chriscorwin for the right aligned icons, I'm talking about the notifications (bell) and hamburger icon to the right. do we have a way to right-align those children?

mbeard avatar Jul 19 '16 13:07 mbeard

@mbeard yes -- the "tertiary" region of the GNB is for this kind of stuff.

It get's the class name . slds-col--bump-left which (perhaps counter-intuitively) makes that entire column "right aligned" (it's "bumped" from the left).

chriscorwin avatar Jul 19 '16 14:07 chriscorwin

Sounds like this is done

tweettypography avatar Jul 20 '16 23:07 tweettypography