-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Mobile: Implement new note menu redesign #11780
base: dev
Are you sure you want to change the base?
Mobile: Implement new note menu redesign #11780
Conversation
This reverts commit 0b6c104.
This commit pushes the menu to the right on large screens. This makes it appear in the same place as the '+' button. This minimizes the distance between the initial click and the next click for creating a button. See also: [Fitts' Law](https://en.wikipedia.org/wiki/Fitts%27s_law)
the shortcut to all other notes
I think it may appear a bit unclear that both "camera", "attachment", and "drawing" are also a type of "new note" (as there is no connection between them and the "new note" button). Just an idea, so please ignore if this is unfeasible or difficult to implement, but what do you think about being able to select one of the three options first (or none if not needed), and then pressing the "new note" or "new to-do" buttons? This way, it would be possible to create both notes and to-dos that contain "camera", "attachment", and "drawing" (and not only notes, as is the case right now). |
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.
Note: Renamed from packages/app-mobile/components/SideMenu.tsx
, with a large number of changes.
…d-new-note-menu' into pr/mobile/redesigned-new-note-menu
Summary
Goals:
This pull request partially implements a redesign of the new note creation process (design by @MartaLC).
In addition to changing the appearance of the "new note" menu, this replaces the
react-native-paper
FAB.Group
component, which had accessibility issues.At the time of this writing, a version of this pull request can be accessed at personalizedrefrigerator.github.io/joplin/web-client/.
Screenshot
The menu includes shortcuts to creating a new note with a photo, drawing, or file attachment, in addition to "new note" and "new to-do" buttons:
![screenshot: A menu along the bottom edge of the screen with camera, attachment, drawing, new to-do, and new note actions. The new to-do and new note actions are on a second row](https://private-user-images.githubusercontent.com/46334387/409807667-0851a314-1c42-417a-89ae-7b45498f2a61.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDY3NzEsIm5iZiI6MTczOTM0NjQ3MSwicGF0aCI6Ii80NjMzNDM4Ny80MDk4MDc2NjctMDg1MWEzMTQtMWM0Mi00MTdhLTg5YWUtN2I0NTQ5OGYyYTYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA3NDc1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlYTg0NGMxMzYxMTZkMzkxZmIwOGNkNjMzY2VhNDk4YjI4ZWQwZTZmMzFjYzRmMDY0ZDg3ZGE4MjcwOGNkMjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JOeOmIC_heSNUJ6zcOP6ilrKpykwXugIhd-7z0wgjyI)
On a wider screen, the menu is pushed to the right edge of the screen, to minimize distance between the menu and the "+" (Add new) button that opens the menu.
![screenshot: The menu, on a wider screen](https://private-user-images.githubusercontent.com/46334387/409814675-61711422-336b-479f-88c9-9bd114da22bb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDY3NzEsIm5iZiI6MTczOTM0NjQ3MSwicGF0aCI6Ii80NjMzNDM4Ny80MDk4MTQ2NzUtNjE3MTE0MjItMzM2Yi00NzlmLTg4YzktOWJkMTE0ZGEyMmJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA3NDc1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE3MjJlOWYwMGY0MDVjYTQzZGY1MGYzZGQ1ZDkxZWUyYWM4MGU1Mjk4OTU1ZjJlNWZhNDllY2UxNDBiMzEyOTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sPOkPCwpVX8lpAU377tpqNQklg_B0wNcG2EDipbljLo)
To-do
Modal
. While the menu is open, theModal
prevents accessibility/keyboard focus from reaching items not in the menu. However, it also makes auto-setting focus difficult. On Android, theModal
seems to auto-focus the first item several hundred milliseconds after the modal opens.