-
Notifications
You must be signed in to change notification settings - Fork 159
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
Dialog box improvements #2263
Comments
|
Modal vs. "normal" dialog?What discerns dialog from modal dialog is that modal ones have an interface blocking characteristic. They force the user to make a decision. So in the current use cases of Phoenix's interface, namely for renaming or even deleting a file using a modal dialog is apt. But since this issue is named "Dialog box improvements" I wanted to make sure that the difference is mentioned. Read more about this in my blog post about (modal) dialogs. Rendering the content behind the modal inertIf a dialog is (a) modal (the word is also an adjective) that means only the modal dialog's content should be accessible to users. Visual (and mouse/touch) usersThis distinction is 99% of the time made with using an overlay, darkening the interface behind the modal. Keyboard usersKeyboard users should expect that focus is kept within the modal ('s tabable elements). Focus mustn't leave the modal when it is open, the darkened/inactive interface behind it should not be reachable via keyboard. This is the case in the current implementation, and a thing we should fix given there's an UX decision in favor of the modal dialog. This could be solved with setting the Screen reader usersThe Therefore, until
Luckily, in phoenix's current implementation is okay regarding that. But should it ever change, please keep the DOM order issue in mind. Proper role & labelAs you can see in the code example above, dialogs both need a proper role and an accessible name. Since there is currently a visible headline within the modal ("Ordner Documents umbenennen", "Datei oder Ordner löschen") this headline can be referenced with CSS Tricks' latest article on
|
Setting this issue's state in "to review" because its dependent on the UX workshop, on whether the text above is helpful to you, and on a decision how to proceed if the modal UX pattern stays in phoenix. |
@marcus-herrmann I agree with your suggestion regarding accessibility for dialogs. As far as I heard, we are already not using UIKit's modals. We have an "oc-dialog" element in the design system. Can you check whether it can be extended to include the accessibility requirements from above ? Then we need to check how we implement modal triggering in Vue and see how we can switch "aria-hidden" for the matching components in a convenient way. As far as I remember we are flipping a flag to display the rename or delete dialog. See: https://github.com/owncloud/phoenix/blob/master/apps/files/src/components/FilesAppBar.vue#L77 I suspect that the latter dialogs are not rendered aside the app container so we might to do some changes. |
@PVince81 Should I stall any work on |
To me the above text is mostly research results to confirm that modals are not a blocker for accessibility as there are ways to make it work. This way we can then continue the discussion about modals, so let's not invest time yet for implementing accessibility until we decide what to do with them. |
Gotcha. |
some part of visual improvements done in owncloud/owncloud-design-system#723 |
Closing this since the new modal has been introduced a while ago now #3378 |
Dialogs:
create file
create folder
rename file/folder
delete file/folder confirmation when deleting inside of trashbin
remove confirmation for deletion when trashbin is enabled ? @pmaier1
design principle: always rename "ok" button to whatever action
always use placeholder
validation must not be jumpy: Jumpy error message in folder creation dialog #1906
@marcus-herrmann @wuenschedesign
The text was updated successfully, but these errors were encountered: