-
Notifications
You must be signed in to change notification settings - Fork 83
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
Lf 4629 [nice to have] implement map footer redesign #3660
Lf 4629 [nice to have] implement map footer redesign #3660
Conversation
…ons - selected button styles remain active
…ed selected styles as no button option available
…n menu items and non english languages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @SayakaOno I misread that conditional render! That makes a lot of sense 😂 |
Duncans attention to detail strikes again -- should be fixed! ... but it looks like pnpm or actions is acting up again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/webapp/src/components/Map/Footer/MapNavigationButtons.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/Map/Footer/MapNavigationButtons.tsx
Outdated
Show resolved
Hide resolved
@SayakaOno thanks for review! I am hesitant to set the height to 64px and since the width is normally fixed and would want to show all words if possible. I chose to flex on height for label text because other languages might be much longer and I wanted to avoid truncating unless absolutely necessary. I added those lines for the long single word case. Flex button item width with fixed menu width was also considered but if one of the text is much longer than the others it hogs the menu and squishes the others. If you have any advice for me about this case, or how I would use the 64px height I would definitely appreciate it! |
I don't think the button needs to have a fixed 64px height per se but it's the vertical margins that are off -- they are 4px currently and should be 10px per the Figma designs. When those margins are updated, the button height ends up being pretty close to 64px in English where there's no text wrapping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a couple of comments but it looks great ❤️
@Duncan-Brain re how I got the 10 px, I don't know if I ever shared this, but on Figma if you click on an element and press the Option key and then hover over other elements, you get the distance from that element to anything else. I can't take a screenshot because I don't know how to take on while keeping the effect 😂 but here's the tutorial from FIgma https://help.figma.com/hc/en-us/articles/360039956974-Measure-distances-between-layers |
@antsgar thanks for the link will remember to look for missing spacing next time. @SayakaOno I see the 64px on the individual button you were talking about too now! I deleted it originally... and it would have maybe avoided the spacing issue Anto also noticed. Wondering if you were saying there are missing css properties that are on figma? I typically try to remove as much Figma css as possible because it can be from parent or globals or it is not following html spec (notice the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Wondering if you were saying there are missing css properties that are on figma?
No, I wasn't. I agree with your approach, we should have as little CSS as possible! (Edit: I’m not sure if that’s always true, but it’s my preference 😂)
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use @mixin truncateText() next time!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thanks! I didn't know about that one! thanks 🙏
Description
Updates the footer styles + icons for map.
Notes:
Jira link: LF-4629
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: