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

Redesign guest pages for better accessibility #33265

Merged
merged 3 commits into from
Jul 27, 2022
Merged

Conversation

CarlSchwan
Copy link
Member

@CarlSchwan CarlSchwan commented Jul 18, 2022

Screenshots:
login

image

image

image

image

image

install1

install1b

install2

install3

image

TODO:

  • Adapt installer to use the same style
  • Adapt updater to use the same style
  • Adapt 2fa pages to use the same style
  • Find other page using this style and adapt them

@CarlSchwan CarlSchwan added the 2. developing Work in progress label Jul 18, 2022
@CarlSchwan CarlSchwan requested a review from jancborchardt July 18, 2022 15:59
@CarlSchwan CarlSchwan self-assigned this Jul 18, 2022
@CarlSchwan CarlSchwan marked this pull request as draft July 18, 2022 15:59
@jancborchardt
Copy link
Member

Looks great! :) 2 things:

  • For the first screenshot, "Access forbidden" should be marked up as a heading, right?
  • These are all wide boxes, do you have a screenshot of the login view (with the username & password boxes) as well?

@github-actions
Copy link
Contributor

Possible performance regression detected

Show Output
1 queries added

= /remote.php/dav/files/test
≠ /remote.php/dav/files/test/test.txt with 1 queries added
  + UPDATE "oc_preferences" SET "configvalue" = :dcValue1 WHERE ("userid" = :dcValue2) AND ("appid" = :dcValue3) AND ("configkey" = :dcValue4)
≠ /remote.php/dav/files/test/many_files with 1 queries removed
  - UPDATE "oc_preferences" SET "configvalue" = :dcValue1 WHERE ("userid" = :dcValue2) AND ("appid" = :dcValue3) AND ("configkey" = :dcValue4)
= /remote.php/dav/files/test/new_file.txt
≠ /remote.php/dav/files/test/new_file.txt with 1 queries added
  + UPDATE "oc_preferences" SET "configvalue" = :dcValue1 WHERE ("userid" = :dcValue2) AND ("appid" = :dcValue3) AND ("configkey" = :dcValue4)

@CarlSchwan
Copy link
Member Author

For the first screenshot, "Access forbidden" should be marked up as a heading, right?

Right this was a preexisting issue, fixed now ;)

These are all wide boxes, do you have a screenshot of the login view (with the username & password boxes) as well?

I updated all the box to not be wide anymore by default unless specified otherwise like on the exception page. Screenshots of the new states are updated

Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

Very nice, looks so good now! :) Only 2 things:

  • There is focus feedback on the username/password input field, but they don’t have a default border. Either using the component, or border: 2px solid var(--color-border) would look nice.
  • From the screenshots, all the scenarios except the internal server error look better with the narrow style – so I’d say let’s change the "Connect to your account" and "Account access" to narrow style. :)

Copy link
Member

@nimishavijay nimishavijay left a comment

Choose a reason for hiding this comment

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

All the screenshots look great! :)
Not sure if this is relevant to this PR but we should change everything that was full opacity black #000000 to --color-main-text, it's especially visible in the screenshot with the app icons.

core/src/components/setup/RecommendedApps.vue Outdated Show resolved Hide resolved
</p>
<p v-else-if="loadingAppsError" class="loading-error text-center">
{{ t('core', 'Could not fetch list of apps from the App Store.') }}
</p>
<p v-else-if="installingApps" class="text-center">
{{ t('core', 'Installing apps …') }}
{{ t('core', 'Installing apps…') }}
Copy link
Member

Choose a reason for hiding this comment

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

Since it's not shortcutting the word "apps" the space is required

Copy link
Member Author

Choose a reason for hiding this comment

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

reverted, but this feels weird. Is this convention documented somewhere?

Copy link
Member

Choose a reason for hiding this comment

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

@rakekniven @jancborchardt anyone has a link?

core/src/components/setup/RecommendedApps.vue Outdated Show resolved Hide resolved
core/src/components/setup/RecommendedApps.vue Outdated Show resolved Hide resolved
core/src/views/Login.vue Outdated Show resolved Hide resolved
core/templates/layout.guest.php Outdated Show resolved Hide resolved
core/templates/layout.public.php Outdated Show resolved Hide resolved
core/templates/loginflowv2/authpicker.php Outdated Show resolved Hide resolved
lib/private/TemplateLayout.php Outdated Show resolved Hide resolved
core/css/guest.css Outdated Show resolved Hide resolved
core/css/guest.css Outdated Show resolved Hide resolved
@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch from a9f5654 to bf0cd74 Compare July 21, 2022 06:27
@CarlSchwan CarlSchwan changed the title Redesign login boxes for better accessibility Redesign guest pages for better accessibility Jul 22, 2022
@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch from 9ec514d to 53e4007 Compare July 22, 2022 10:44
@CarlSchwan CarlSchwan marked this pull request as ready for review July 22, 2022 10:44
core/src/components/login/LoginButton.vue Outdated Show resolved Hide resolved
core/src/components/setup/RecommendedApps.vue Outdated Show resolved Hide resolved
core/src/views/Login.vue Outdated Show resolved Hide resolved
core/src/views/Login.vue Show resolved Hide resolved
core/src/views/Login.vue Outdated Show resolved Hide resolved
@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch 2 times, most recently from 6ded9bc to 464355a Compare July 25, 2022 07:28
@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch 2 times, most recently from 39bd890 to 3d4d8e2 Compare July 25, 2022 07:52
@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch from 3d4d8e2 to 5d7d651 Compare July 25, 2022 08:58
@AndyScherzinger
Copy link
Member

@jancborchardt looking at the screenshot
install3

shouldn't "Cancel" rather be "Skip" ?

@CarlSchwan
Copy link
Member Author

@jancborchardt looking at the screenshot install3

shouldn't "Cancel" rather be "Skip" ?

It should, good catch

@AndyScherzinger
Copy link
Member

Thanks for caring and for taking care @CarlSchwan 💙

@CarlSchwan
Copy link
Member Author

Thanks for caring and for taking care @CarlSchwan blue_heart

Fixed :)

I would say this is good to go now. There might be some apps that need to be adapted after this change but I for the moment checked most of them and everything seems to still work fine

@CarlSchwan CarlSchwan requested a review from nickvergessen July 26, 2022 08:04
@nickvergessen
Copy link
Member

It should, good catch

forgot to push? Or Push failed?

@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch from 8e5cc5c to a94b222 Compare July 26, 2022 08:38
@CarlSchwan
Copy link
Member Author

It should, good catch

forgot to push? Or Push failed?

forgot to push :(

@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch from a94b222 to 84a2dbe Compare July 27, 2022 06:49
- Use white box and put content on it
- Improve focus indicator

Signed-off-by: Carl Schwan <[email protected]>
@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch from b662450 to 9c94c91 Compare July 27, 2022 08:43
@CarlSchwan CarlSchwan added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Jul 27, 2022
Signed-off-by: Carl Schwan <[email protected]>
@CarlSchwan CarlSchwan force-pushed the fix/carl/login-boxes branch from 9c94c91 to 3fa6ee3 Compare July 27, 2022 09:29
@CarlSchwan CarlSchwan merged commit 791a182 into master Jul 27, 2022
@CarlSchwan CarlSchwan deleted the fix/carl/login-boxes branch July 27, 2022 10:37
@jancborchardt
Copy link
Member

@CarlSchwan this looks so damn cool, and is much more accessible on top of it. Great work! ✨

@skjnldsv skjnldsv mentioned this pull request Aug 11, 2022
kesselb added a commit to nextcloud/twofactor_totp that referenced this pull request Sep 20, 2022
nextcloud/server#33265 changed <input> to <button>.

Signed-off-by: Daniel Kesselberg <[email protected]>
ChristophWurst pushed a commit to nextcloud/twofactor_totp that referenced this pull request Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish feature: accessibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants