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

App Launcher: search input not centered properly or centered via CSS hack

Open mbeard opened this issue 10 years ago • 12 comments

When the "AppExchange" button is hidden, the search input is right-aligned instead of centered. Need to ensure that even when the button is hidden, the search input should be centered.

Currently: screenshot 2016-07-22 13 43 18

Should be: screenshot 2016-07-22 13 51 08

mbeard avatar Jul 22 '16 17:07 mbeard

Card has a similar style (this might even be a card-like).

If you remove the third one of three column then, the search goes to right.

I suggest that the third 1-of-3 column not be removed even if there are no CTA buttons on the right.

interactivellama avatar Jul 22 '16 18:07 interactivellama

@interactivellama are you saying Card has this issue too? Or just saying it operates similarly?

iowillhoit avatar Jul 22 '16 19:07 iowillhoit

I'm saying it doesn't do it and that you may want it to work like Card.

screen shot 2016-07-22 at 3 34 02 pm

The third column is still present, just empty.

FYI, there's not an SLDS pattern for this that I'm aware for Card or App launcher with actions column in the header--but we should keep them consistent.

interactivellama avatar Jul 22 '16 19:07 interactivellama

Just pushed a PR, take a look #469

iowillhoit avatar Jul 22 '16 19:07 iowillhoit

This is a complete hack, so I'm not suggesting it as a solution, but .slds-size--1-of-7on that right columns gets it to work properly.

interactivellama avatar Jul 22 '16 19:07 interactivellama

lol, except for when it actually has a button. It throws off the alignment of right side of the button

iowillhoit avatar Jul 22 '16 20:07 iowillhoit

Merged your temp solution for now. If we want to conditionally apply that class we can consider the update for next release. Maybe SLDS can give us some guidance on what the pattern should be for a non-button version?

tweettypography avatar Jul 22 '16 20:07 tweettypography

@tweettypography you want me to change this slightly to add the .slds-size--1-of-7 if Button is undefined?

iowillhoit avatar Jul 22 '16 20:07 iowillhoit

Let's focus on these other PRs first and we can come back to this if needed

tweettypography avatar Jul 22 '16 20:07 tweettypography

I know that this has been merged in #469. Is this good enough until next release when we will add the "App Exchange" button? Can this be closed or should I implement the .slds-size--1-of-7 quick-fix too?

iowillhoit avatar Jul 26 '16 16:07 iowillhoit

Moving to backlog.

interactivellama avatar Jul 26 '16 17:07 interactivellama

Closed via #510

iowillhoit avatar Jul 29 '16 15:07 iowillhoit