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

Fix various accessibility issues #33259

Merged
merged 6 commits into from
Aug 26, 2022
Merged

Conversation

CarlSchwan
Copy link
Member

@CarlSchwan CarlSchwan commented Jul 18, 2022

  • Increase the size of input fields not fully AAA compliant but better
  • Use the same design as the new vue component
  • Fix user status dialog
    • Add labels where missings
    • Move emoji picker inside input field (similar to talk)
    • Fix selecting an emoji
  • Fix multiselect regressions
  • Small password settings improvements
  • Fix button with confirmation action
  • Fix some other unrelated dark theme issues
  • Fix select2 focus
  • Run npm lint:fix

Screenshots:

image

image

@CarlSchwan CarlSchwan added this to the Nextcloud 25 milestone Jul 18, 2022
@CarlSchwan CarlSchwan requested review from Pytal and a team July 18, 2022 11:35
@CarlSchwan CarlSchwan self-assigned this Jul 18, 2022
@CarlSchwan CarlSchwan requested review from artonge, skjnldsv and jancborchardt and removed request for a team July 18, 2022 11:35
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.

The left/right padding needs to be adjusted, currently it’s way too little. It should be visually the same as the top/bottom padding. (Also compare to the select dropdown e.g. for language, where the left/right padding is better but actually a bit too much.)

@CarlSchwan CarlSchwan force-pushed the fix/carl/accessibility-input-fields branch 2 times, most recently from f0ad5d8 to 65acfd5 Compare July 27, 2022 09:50
@CarlSchwan
Copy link
Member Author

The left/right padding needs to be adjusted, currently it’s way too little. It should be visually the same as the top/bottom padding. (Also compare to the select dropdown e.g. for language, where the left/right padding is better but actually a bit too much.)

I updated the screenshots to include the new paddings

artonge
artonge previously approved these changes Jul 27, 2022
@PVince81
Copy link
Member

@CarlSchwan if this is ready for re-review, please re-request review from Jan-C instead of leaving it blocking

Pytal
Pytal previously approved these changes Jul 27, 2022
Copy link
Member

@Pytal Pytal left a comment

Choose a reason for hiding this comment

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

Other than the comment below

apps/user_ldap/lib/Group_LDAP.php.rej Outdated Show resolved Hide resolved
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.

Looks good now! :)

@CarlSchwan
Copy link
Member Author

Probably also best to wait for nextcloud-libraries/nextcloud-vue#2868 to get merged to adapt the style/size as much as possible to the new view component

@PVince81
Copy link
Member

@CarlSchwan still ready to merge then ? it's green!

@CarlSchwan CarlSchwan added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Aug 11, 2022
@CarlSchwan CarlSchwan force-pushed the fix/carl/accessibility-input-fields branch from 65acfd5 to cb64d90 Compare August 11, 2022 09:37
@CarlSchwan
Copy link
Member Author

Adapted to the new style of Nextcloud vue components and change the font size to 15px

image

@CarlSchwan CarlSchwan added 3. to review Waiting for reviews and removed 2. developing Work in progress do not merge labels Aug 11, 2022
@CarlSchwan CarlSchwan force-pushed the fix/carl/accessibility-input-fields branch from f456d3b to 3593cf1 Compare August 25, 2022 12:26
@nickvergessen nickvergessen mentioned this pull request Aug 25, 2022
2 tasks
@CarlSchwan CarlSchwan force-pushed the fix/carl/accessibility-input-fields branch from 3593cf1 to d2d9ddb Compare August 25, 2022 17:13
@PVince81
Copy link
Member

oops, I merged @Pytal's #33217 and now there's conflicts again with your changes :-/

@Pytal
Copy link
Member

Pytal commented Aug 25, 2022

🤔 looks like we just need to adapt the styles in

<style lang="scss" scoped>
section {
padding: 10px 10px;
&::v-deep button:disabled {
cursor: default;
}
.property {
display: grid;
align-items: center;
textarea {
resize: vertical;
grid-area: 1 / 1;
width: 100%;
margin: 3px 3px 3px 0;
padding: 7px 6px;
color: var(--color-main-text);
border: 1px solid var(--color-border-dark);
border-radius: var(--border-radius);
background-color: var(--color-main-background);
font-family: var(--font-face);
cursor: text;
&:hover,
&:focus,
&:active {
border-color: var(--color-primary-element) !important;
outline: none !important;
}
}
input {
grid-area: 1 / 1;
width: 100%;
height: 34px;
margin: 3px 3px 3px 0;
padding: 7px 6px;
color: var(--color-main-text);
border: 1px solid var(--color-border-dark);
border-radius: var(--border-radius);
background-color: var(--color-main-background);
font-family: var(--font-face);
cursor: text;
}
.property__actions-container {
grid-area: 1 / 1;
justify-self: flex-end;
align-self: flex-end;
height: 30px;
display: flex;
gap: 0 2px;
margin-right: 5px;
margin-bottom: 5px;
}
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
.fade-enter-active {
transition: opacity 200ms ease-out;
}
.fade-leave-active {
transition: opacity 300ms ease-out;
}
}
</style>
@CarlSchwan

@CarlSchwan CarlSchwan force-pushed the fix/carl/accessibility-input-fields branch from d2d9ddb to 1b4823d Compare August 26, 2022 11:05
@CarlSchwan
Copy link
Member Author

oops, I merged @Pytal's #33217 and now there's conflicts again with your changes :-/

rebased :) let's hope it is the last time

@nickvergessen
Copy link
Member

Conflicting files
dist/core-main.js.map

Merged by @CarlSchwan
aa150b9

Shame on him!

@CarlSchwan CarlSchwan force-pushed the fix/carl/accessibility-input-fields branch 2 times, most recently from e6612a0 to 8446bb0 Compare August 26, 2022 11:59
Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

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

🐘

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

🐘 🐘

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍 (we got a nice tour of this yesterday)

@skjnldsv

This comment was marked as resolved.

This fix a regression with the theming api following the change in
webpack bundling introduced in 24

Signed-off-by: Carl Schwan <[email protected]>
Input fields require a 44x44 pixels target size, this makes all the
input fields and button use that size.

Bonus is that now the input fields and buttons now have the same size as
the new vue button and this looks less weird than the previous state
with controls of different sizes.

See https://www.w3.org/WAI/WCAG21/Understanding/target-size.html

Signed-off-by: Carl Schwan <[email protected]>
- Fix user status dialog
  - Add label where missing
  - Move emoji picker inside input field (similar to talk)
  - Fix selecting an emoji
- Fix multiselect
- Fix button with confirmation action
- Fix some other unrelated dark theme issues
- Fix select2 focus
- Run npm lint:fix

Signed-off-by: Carl Schwan <[email protected]>
Signed-off-by: Carl Schwan <[email protected]>
@CarlSchwan CarlSchwan force-pushed the fix/carl/accessibility-input-fields branch from 8446bb0 to dfd36e8 Compare August 26, 2022 17:51
@skjnldsv skjnldsv force-pushed the fix/carl/accessibility-input-fields branch from dfd36e8 to f1ce2c2 Compare August 26, 2022 17:51
@skjnldsv skjnldsv merged commit eb8ac0b into master Aug 26, 2022
@skjnldsv skjnldsv deleted the fix/carl/accessibility-input-fields branch August 26, 2022 17:59
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Aug 26, 2022
@blizzz blizzz mentioned this pull request Aug 30, 2022
@Pytal Pytal mentioned this pull request Jan 20, 2023
4 tasks
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.

8 participants