Skip to content

fix(systemtags): only render inline list of tags if there are some#59424

Open
susnux wants to merge 1 commit intomasterfrom
fix/systemtags-inline
Open

fix(systemtags): only render inline list of tags if there are some#59424
susnux wants to merge 1 commit intomasterfrom
fix/systemtags-inline

Conversation

@susnux
Copy link
Copy Markdown
Contributor

@susnux susnux commented Apr 3, 2026

If there are no tags available, then we cannot render an <ul> element as this would result in invalid HTML / invalid accessibility state. Ref: https://www.w3.org/TR/wai-aria-1.2/#mustContain

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux susnux added this to the Nextcloud 34 milestone Apr 3, 2026
@susnux susnux requested a review from a team as a code owner April 3, 2026 14:21
@susnux susnux requested review from nfebe and szaimen and removed request for a team April 3, 2026 14:21
@susnux susnux added the bug label Apr 3, 2026
@susnux susnux requested a review from sorbaugh April 3, 2026 14:21
@susnux susnux requested review from Antreesy and skjnldsv and removed request for sorbaugh April 3, 2026 14:22
@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 3, 2026

/backport to stable33

@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 3, 2026

/backport to stable32

Copy link
Copy Markdown
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

Otherwise looks clean!

@susnux susnux force-pushed the fix/systemtags-inline branch from 5ec9b42 to d4e6790 Compare April 3, 2026 14:58
- resolves #59332

If there are no tags available, then we cannot render an `<ul>` element
as this would result in invalid HTML / invalid accessibility state.
Ref: https://www.w3.org/TR/wai-aria-1.2/#mustContain

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/systemtags-inline branch from d4e6790 to 01c27e4 Compare April 3, 2026 15:03
@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 3, 2026

(adjusted unit tests)

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.

[Bug]: Accessibility: List without list items

2 participants