Skip to content
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

feat: add to single line map arrowa to navigate between points #798

Merged

Conversation

dorinzrihen
Copy link
Collaborator

Description

#776
it's not solution with more zoom (i check with the docs and it look like it's the maximum)

screenshots

image

Untitled video - Made with Clipchamp

@dorinzrihen dorinzrihen changed the title Feat/add to single line map arrowa to navigate between points Feat: add to single line map arrowa to navigate between points Jun 13, 2024
Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

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

Perfect! Thank you

className={`${checkIfValidStep(rightStep) ? '' : 'disabled'}`}
onClick={() => navigateMarkers(rightStep)}
/>
<LeftOutlined
Copy link
Member

Choose a reason for hiding this comment

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

we can add a "title" attribute for hover ("prev" / "next")

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I choose to use right/left-chevron instead cuz 'prev' 'next' depend on the direction
image

Copy link
Member

Choose a reason for hiding this comment

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

the title attribute is visible to users, and should help them understand whether right will indicate the previous or the next item of the list.
In RTL website, it's common to see right arrows serving as "next" buttons, while on LTR website it's the opposite, that's why I feel having this title can be significant to the user experience

image

return (
<div className="map-footer-buttons">
<RightOutlined
className={`${checkIfValidStep(rightStep) ? '' : 'disabled'}`}
Copy link
Member

Choose a reason for hiding this comment

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

just an idea - we can hide the button if it's not relevant for this data point

@NoamGaash NoamGaash changed the title Feat: add to single line map arrowa to navigate between points feat: add to single line map arrowa to navigate between points Jun 13, 2024
@dorinzrihen dorinzrihen merged commit 11a602c into main Jun 14, 2024
17 checks passed
@dorinzrihen dorinzrihen deleted the feat/add-to-single-line-map-arrowa-to-navigate-between-points branch June 14, 2024 13:28
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