Skip to content

Fix various accessibility issues - #33259

Merged
skjnldsv merged 6 commits into
masterfrom
fix/carl/accessibility-input-fields
Aug 26, 2022
Merged

Fix various accessibility issues#33259
skjnldsv merged 6 commits into
masterfrom
fix/carl/accessibility-input-fields

Conversation

@CarlSchwan

@CarlSchwanCarlSchwan commented Jul 18, 2022

Copy link
Copy Markdown
Member
  • 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

@CarlSchwanCarlSchwan added this to the Nextcloud 25 milestone Jul 18, 2022
@CarlSchwan
CarlSchwan requested review from a team and PytalJuly 18, 2022 11:35
@CarlSchwanCarlSchwan self-assigned this Jul 18, 2022
@CarlSchwan
CarlSchwan requested review from artonge, jancborchardt and skjnldsv and removed request for a teamJuly 18, 2022 11:35

@jancborchardtjancborchardt left a comment

Copy link
Copy Markdown
Member

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
CarlSchwanforce-pushed the fix/carl/accessibility-input-fields branch 2 times, most recently from f0ad5d8 to 65acfd5CompareJuly 27, 2022 09:50
@CarlSchwan

Copy link
Copy Markdown
MemberAuthor

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
Copy Markdown
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

@PytalPytal left a comment

Copy link
Copy Markdown
Member

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

Comment threadapps/user_ldap/lib/Group_LDAP.php.rej Outdated

@jancborchardtjancborchardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good now! :)

Comment threadcore/css/inputs.scss
@CarlSchwan

Copy link
Copy Markdown
MemberAuthor

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
Copy Markdown
Member

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

@CarlSchwanCarlSchwan added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Aug 11, 2022
@CarlSchwan
CarlSchwanforce-pushed the fix/carl/accessibility-input-fields branch from 65acfd5 to cb64d90CompareAugust 11, 2022 09:37
@CarlSchwan

Copy link
Copy Markdown
MemberAuthor

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

image

@CarlSchwanCarlSchwan added 3. to review Waiting for reviews and removed 2. developing Work in progress do not merge labels Aug 11, 2022
@CarlSchwan
CarlSchwanforce-pushed the fix/carl/accessibility-input-fields branch from f456d3b to 3593cf1CompareAugust 25, 2022 12:26
@nickvergessennickvergessen mentioned this pull request Aug 25, 2022
2 tasks
@CarlSchwan
CarlSchwanforce-pushed the fix/carl/accessibility-input-fields branch from 3593cf1 to d2d9ddbCompareAugust 25, 2022 17:13
@PVince81

Copy link
Copy Markdown
Member

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

@Pytal

Pytal commented Aug 25, 2022

Copy link
Copy Markdown
Member

🤔 looks like we just need to adapt the styles in

<style lang="scss" scoped>
section {
padding:10px10px;
&::v-deep button:disabled {
cursor: default;
}
.property {
display: grid;
align-items: center;
textarea {
resize: vertical;
grid-area:1/1;
width:100%;
margin:3px3px3px0;
padding:7px6px;
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:3px3px3px0;
padding:7px6px;
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:02px;
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
CarlSchwanforce-pushed the fix/carl/accessibility-input-fields branch from d2d9ddb to 1b4823dCompareAugust 26, 2022 11:05
@CarlSchwan

Copy link
Copy Markdown
MemberAuthor

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
Copy Markdown
Member

Conflicting files
dist/core-main.js.map

Merged by @CarlSchwan
aa150b9

Shame on him!

@CarlSchwan
CarlSchwanforce-pushed the fix/carl/accessibility-input-fields branch 2 times, most recently from e6612a0 to 8446bb0CompareAugust 26, 2022 11:59

@miaulalalamiaulalala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🐘

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🐘 🐘

@PVince81PVince81 left a comment

Copy link
Copy Markdown
Member

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 <carl@carlschwan.eu>
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 <carl@carlschwan.eu>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
- 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 <carl@carlschwan.eu>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwanforce-pushed the fix/carl/accessibility-input-fields branch from 8446bb0 to dfd36e8CompareAugust 26, 2022 17:51
@skjnldsv
skjnldsvforce-pushed the fix/carl/accessibility-input-fields branch from dfd36e8 to f1ce2c2CompareAugust 26, 2022 17:51
@skjnldsv
skjnldsv merged commit eb8ac0b into masterAug 26, 2022
@skjnldsv
skjnldsv deleted the fix/carl/accessibility-input-fields branch August 26, 2022 17:59
@skjnldsvskjnldsv 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
@blizzzblizzz mentioned this pull request Aug 30, 2022
@PytalPytal mentioned this pull request Sep 16, 2022
@PytalPytal mentioned this pull request Jan 20, 2023
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishfeature: accessibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@CarlSchwan@PVince81@nickvergessen@Pytal@skjnldsv@jancborchardt@artonge@miaulalala