Skip to content

fix(NcEmptyContent): use name as label - #7634

Merged
susnux merged 1 commit into
mainfrom
fix/empty-content-header
Oct 13, 2025
Merged

susnux merged 1 commit into
mainfrom
fix/empty-content-header

Conversation

@susnux

@susnux susnux commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor

☑️ Resolves

Naming a note is optional, but can help screen reader users understand its context and purpose

So its not required but it was a breaking change when we made the name not a heading anymore (while still it was an a11y fix). But now the note is not really identifiable when using a11y-api, so we need to use the name as the label.

🖼️ Screenshots

🏚️ Before 🏡 After
Bildschirmfoto_20251008_142016 Bildschirmfoto_20251008_142046

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

@susnux susnux added bug Something isn't working 3. to review Waiting for reviews accessibility Making sure we design for the widest range of people possible, including those who have disabilities feature: emptycontent Related to the emptycontent component labels Oct 8, 2025
@susnux susnux modified the milestones: 9.1.0, 9.0.2 Oct 8, 2025
@susnux
susnux marked this pull request as ready for review October 8, 2025 12:22
> Naming a note is optional, but can help screen reader users understand its context and purpose

So its not required but it was a breaking change when we made the `name`
not a heading anymore (while still it was an a11y fix).
But now the note is not really identifiable when using a11y-api,
so we need to use the name as the label.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux force-pushed the fix/empty-content-header branch from fda138a to 1a52197 Compare October 8, 2025 12:27
@susnux

susnux commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

/backport to stable8

Comment thread src/components/NcEmptyContent/NcEmptyContent.vue

@max-nextcloud max-nextcloud 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.

Only checked the code as I know to little about the context to judge if this change makes sense.

Asking @JuliaKirschenheuter for review as an a11y expert.

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

Fine by me, but in the future I'd avoid having additional hidden changes even when they don't seem a problem.

@susnux
susnux merged commit 02a28ff into main Oct 13, 2025
25 checks passed
@susnux
susnux deleted the fix/empty-content-header branch October 13, 2025 20:59
@susnux susnux modified the milestones: 9.0.2, 9.1.0 Oct 14, 2025
@ShGKme ShGKme mentioned this pull request Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews accessibility Making sure we design for the widest range of people possible, including those who have disabilities bug Something isn't working feature: emptycontent Related to the emptycontent component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants