When using the Top Bar component without a Search Field, the Top Bar's User Menu is left-aligned. I believe it should always be right-aligned.
The best way to see the issue is through this CodePen: https://codesandbox.io/s/7yqwzpj1q0
Not including a Search Field (which is an optional prop) on Top Bar shouldn't affect the positioning of User Menu (it should always be right-aligned).
I am making an assumption here: maybe the current behaviour is expected.
Failing to include a Search Field causes the User Menu to be left-aligned.
https://codesandbox.io/s/7yqwzpj1q0
馃憢 Thanks for opening your first issue. A contributor should give feedback soon. If you haven鈥檛 already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack.
Not including a Search Field (which is an optional prop) on Top Bar shouldn't affect the positioning of User Menu (it should always be right-aligned).
I am making an assumption here: maybe the current behaviour is expected.
I think this makes sense. Elements should be aligned right without necessitating a search bar. That sounds like the fix to me, so long as it doesn't negatively impact the position of the search bar.
@danrosenthal Should I take a stab at a PR?
Should I take a stab at a PR?
Please, that would be great!
@danrosenthal Should I take a stab at a PR?
Yes, please!
Most helpful comment
@danrosenthal Should I take a stab at a PR?