-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(settings): emails actions a11y and design #43944
Conversation
Then we either should throw / show an error when non NcAction* components are used or fix the NcActions component to properly handle those.
Is this accessibility related? @nextcloud/designers whats your opinion here? Asking because for me it looks odd that the secondary email input fields now are a different width than the primary email. |
Yep, though about it, should be added
I don't see any reliable way to fully fix this case, except quite complex solutions. Having several days before the final a11y testing and only a single place with this issue I'd prefer to go with a simple solution in place.
Both. From a design perspective, I'd try to avoid multi-level menus for simplicity and having a short way to the required action. It makes sense in a large menu, but here we have only 1-2 actions outside of the federation scope. From an a11y perspective, I'm not sure. Neither submenu button nor the back button has anything except a text telling the user that it changes the menu, and I don't know if it is fine or not. For example, in Files "Set reminder" has a bit broken focus behavior and no labeling that "Set reminder" on submenu is actually a Back button. In this place, for me, NVDA doesn't react on moving to the submenu and back until I press an arrow key. In general, I'd say we should have an interface to provide submenus out of the box in
We can also make the first input shorter 😀 Or use label outside for additional emails same as other labels on this page. Then scope federation menu can be on the label. |
Or make the federation scope the trailing button? Then all input fields have the same width. |
But we cannot put |
7c3535f
to
32dec51
Compare
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.
Or make the federation scope the trailing button? Then all input fields have the same width.
The federation scope looks better next to the label, and also makes more sense next to it as it is closer to its description.
@ShGKme I would be fine with your draft too. If accessibility-wise it is fine to have the button floating inside the input (on the right) like in the old design, then we could do that?
It would accomodate the actions, and ensure that all fields have the same width. It is also commonly done with e.g. password input visibility buttons.
It is a problem implementation-wise with our input fields. First, we can only specify an icon for the trailing button but not the button. So we cannot put an actions menu there. Second, on error/success state there is always an icon. All these problems are solvable, but with dirty hacks. |
@jancborchardt Is it fine? |
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.
Yeah, that looks great in fact! :) The error icon was just duplicated so good on removing it.
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.
Designers said looks good, code looks fine, so 👍 😄
79336d0
to
ae65c34
Compare
|
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.
Tested, and is much nicer!
Cypress is related |
ae65c34
to
980316c
Compare
Signed-off-by: Grigorii K. Shartsev <[email protected]>
Signed-off-by: Grigorii K. Shartsev <[email protected]>
980316c
to
7a8c581
Compare
Thanks for this @ShGKme !! 🙇 🤗 |
/backport 680f439 to stable28 |
The backport to # Switch to the target branch and update it
git checkout stable28
git pull origin stable28
# Create the new backport branch
git checkout -b backport/43944/stable28
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 680f439
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/43944/stable28 Error: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
Backport is not needed, at least, unless #43488 is backported |
Summary
FederationActions.vue
from fix: Use nextcloud-vue components for personal info settings #43488NcActions
doesn't support havingnon-NcAction*
as direct children which causes a11y issuesScreenshots
All screenshots are taken on the layout with the smallest width of inputs
After design discussions:
Checklist