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(settings): users page html validation #41034

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Oct 21, 2023

Summary

  • Error: Attribute button-class not allowed on element div at this point.
    • Remove non-existing button-class from NcAppNavigationNew
  • Error: The value of the for attribute of the label element must be the ID of a non-hidden form control.
    • Typo: use input-id instead of id on NcSelect to be labeled
  • Error: Bad value quota-progressAdmin 25x1kcgi6srs for attribute for on element label: An ID must not contain whitespace.
    Error: Bad value quota-progressAdmin 25x1kcgi6srs for attribute id on element progress: An ID must not contain whitespace.
    • Encode uniqueId with user's ID, because user.id may contain space

Also change <label> for <progress> in user quota with aria-labelledby, because <label> doesn't work here in some screen readers (NDVA) and there is no need in an actual clickable <label> link.

No visual changes.

Checklist

- Remove non-existing `button-class` from `NcAppNavigationNew`
- Type: use `input-id` instead of `id` on `NcSelect` to be labeled
- Encode uniqueId with user's ID, because user.id may contain space

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Labeling with `<label>` doesn't work in some screen readers.
`<label>` also doesn't work as a clickable link here.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme
Copy link
Contributor Author

ShGKme commented Oct 23, 2023

Cypress fail is related

@ShGKme
Copy link
Contributor Author

ShGKme commented Oct 23, 2023

Cypress fail is related

Or not... Works fine locally

@susnux
Copy link
Contributor

susnux commented Oct 23, 2023

Or not... Works fine locally

Not related, the tests are quite flaky. Pushed a fix here:
#41021

@susnux susnux merged commit d43c66e into master Oct 23, 2023
37 of 39 checks passed
@susnux susnux deleted the fix/37092/users--html-validation branch October 23, 2023 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants