Skip to content

Conversation

@dfmcphee
Copy link
Contributor

@dfmcphee dfmcphee commented Apr 9, 2020

WHY are these changes introduced?

Currently we hide the secondaryMenu in the top bar on small screens. We need to use this for a feature we are working on, but it needs to show on small screens too.

WHAT is this pull request doing?

This PR removes the styles on the secondary menu that was hiding it at a breakpoint. I also added an example to the TopBar readme.

This is what it looks like now:

Simulator Screen Shot - iPhone 11 Pro Max - 2020-04-13 at 11 13 25

How to 🎩

Look at the example in storybook on a small screen and make sure the menu still shows.

🎩 checklist

@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2020

🟢 This pull request modifies 4 files and might impact 3 other files.

Details:
All files potentially affected (total: 3)
📄 UNRELEASED.md (total: 0)

Files potentially affected (total: 0)

📄 src/components/TopBar/README.md (total: 0)

Files potentially affected (total: 0)

🎨 src/components/TopBar/TopBar.scss (total: 1)

Files potentially affected (total: 1)

🎨 src/components/TopBar/components/Menu/Menu.scss (total: 3)

Files potentially affected (total: 3)

Copy link
Member

@kyledurand kyledurand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good but can we tighten up the spacing between secondary and primary?

image

Just looks a bit off to me

@dfmcphee
Copy link
Contributor Author

dfmcphee commented Apr 9, 2020

Just looks a bit off to me

Yea it does doesn't it. I tweaked some of the margins for the search and menu activators. This is what it looks like now.

Screen Shot 2020-04-09 at 4 53 41 PM

@dfmcphee dfmcphee force-pushed the secondary-menu-small-screen branch from 98d1af5 to 2f89b2d Compare April 13, 2020 15:00
@dfmcphee
Copy link
Contributor Author

🎩ed this in web and it looked good there too. Can I get another set of 👀s on this?

Copy link
Member

@kyledurand kyledurand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good just one note about the icon being white because it won't show up when new design language is true

Adding example

Updating UNRELEASED

Adjusting margins

Chaning example

Removing hard coded icon colour
@dfmcphee dfmcphee force-pushed the secondary-menu-small-screen branch from 2f89b2d to 436cf70 Compare April 13, 2020 19:58
@dfmcphee
Copy link
Contributor Author

Looks good just one note about the icon being white because it won't show up when new design language is true

Good catch. I adjusted this to not need a color set on the icon component and instead apply the correct color in the CSS.

Here are some examples:

Screen Shot 2020-04-13 at 3 53 34 PM

Screen Shot 2020-04-13 at 3 53 25 PM

Screen Shot 2020-04-13 at 3 50 47 PM

Right right. Forgot we had that. Thanks!

Co-Authored-By: Kyle Durand <kyledurand@users.noreply.github.com>
@dfmcphee dfmcphee merged commit 162be25 into master Apr 14, 2020
@dfmcphee dfmcphee deleted the secondary-menu-small-screen branch April 14, 2020 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants