Skip to content

fix: added a label element to the NcSelect in update settings - #43094

Merged
susnux merged 1 commit into
masterfrom
fix/a11y/43088/select-has-no-connected-label
Jan 27, 2024
Merged

fix: added a label element to the NcSelect in update settings#43094
susnux merged 1 commit into
masterfrom
fix/a11y/43088/select-has-no-connected-label

Conversation

@emoral435

Copy link
Copy Markdown
Contributor

Summary

@JuliaKirschenheuter (all credit to her) found that in index.php/settings/admin/overview, there is a NcSelect without a corresponding label. This fixes that, No visual change, gave the label input the corresponding styles that would accompany the change from h4 element 👍

TODO

  • Added a label to correspond with out input element, as well as matching their ID's

Checklist

@emoral435

Copy link
Copy Markdown
ContributorAuthor

Will /backport once accepted by reviews :)

@emoral435

Copy link
Copy Markdown
ContributorAuthor

/compile amend/

@ShGKmeShGKme 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.

Some nitpicks

Comment threadapps/updatenotification/src/components/UpdateNotification.vue Outdated
Comment threadapps/updatenotification/src/components/UpdateNotification.vue Outdated
@ShGKme

Copy link
Copy Markdown
Contributor

No visual change, gave the label input the corresponding styles that would accompany the change from h4 element 👍

I think we can make it plain text. It looks inconsistent now, not sure it was needed to be h4 with h4 styles. cc @szaimen

Comment threadapps/updatenotification/src/components/UpdateNotification.vue Outdated
@emoral435
emoral435force-pushed the fix/a11y/43088/select-has-no-connected-label branch 2 times, most recently from 2d305e6 to 725ee59CompareJanuary 25, 2024 15:41
@emoral435
emoral435 requested a review from PytalJanuary 25, 2024 15:41
@emoral435

Copy link
Copy Markdown
ContributorAuthor

@Pytal Fixed! And styling should be the same - had to add high order specifiers with ID's and whatnot because Vue's default styling on their Select component was beating out most things I tried. This kept it pretty consistent:

firefox_3QXFPCor22

Comment threadapps/updatenotification/src/components/UpdateNotification.vue Outdated
@Pytal

Copy link
Copy Markdown
Member

I'd say we should to drop the custom select__label styles and set width: fit-content on the wrapper + min-width: 100% on the dropdown toggle to have the select and label be the same width

@nextcloud/designers for design input

@emoral435
emoral435force-pushed the fix/a11y/43088/select-has-no-connected-label branch from 725ee59 to 914d0b0CompareJanuary 26, 2024 16:14
@emoral435

Copy link
Copy Markdown
ContributorAuthor

Agreed, IMO I think that having the label be 900px wide but then having the select be way smaller is a bit weird. Will push this then try to see what the designers say. Here is how it looks like, for the @nextcloud/designers :

firefox_dTCLp67UjB

@szaimen

Copy link
Copy Markdown
Contributor

Agreed, IMO I think that having the label be 900px wide but then having the select be way smaller is a bit weird. Will push this then try to see what the designers say. Here is how it looks like, for the @nextcloud/designers :

firefox_dTCLp67UjBfirefox_dTCLp67UjB

Honestly from design perspective I'd say this detail doesnt really matter as there are many other things on this page that don't look visually perfect 😅🙈

@emoral435
emoral435 requested a review from PytalJanuary 26, 2024 17:45
@susnux
susnuxforce-pushed the fix/a11y/43088/select-has-no-connected-label branch from 914d0b0 to 9148573CompareJanuary 27, 2024 01:09
@susnux

Copy link
Copy Markdown
Contributor

/compile amend

@susnux
susnux enabled auto-merge January 27, 2024 01:10
@susnux

Copy link
Copy Markdown
Contributor

/backport to stable28

Signed-off-by: Eduardo Morales <emoral435@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command
nextcloud-commandforce-pushed the fix/a11y/43088/select-has-no-connected-label branch from 9148573 to 35518bcCompareJanuary 27, 2024 01:14
@susnux
susnux merged commit fe4dde3 into masterJan 27, 2024
@susnux
susnux deleted the fix/a11y/43088/select-has-no-connected-label branch January 27, 2024 01:39
@blizzzblizzz mentioned this pull request Mar 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsaccessibilitybug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BITV]: Select has no connected label

5 participants

@emoral435@ShGKme@Pytal@szaimen@susnux