Skip to content

Conversation

@HugoRCD
Copy link
Member

@HugoRCD HugoRCD commented Sep 10, 2025

πŸ”— Linked issue

Relates nuxt/nuxt.com#2035

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 10, 2025

npm i https://pkg.pr.new/@nuxt/ui@4938

commit: 9942ce2

:items="items"
:get-key="(item) => item.path"
:default-expanded="expanded"
aria-label="File tree navigation"
Copy link
Member

Choose a reason for hiding this comment

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

Is this one really necessary? This would need to be translated πŸ€”

Comment on lines +197 to +198
as="ul"
role="tree"
Copy link
Member

Choose a reason for hiding this comment

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

I believe those are unnecessary and already done by the TreeRoot.

<button :class="ui.link({ class: props.ui?.link, active: isSelected })">
<button
:class="ui.link({ class: props.ui?.link, active: isSelected })"
:aria-expanded="item.children?.length ? isExpanded : undefined"
Copy link
Member

Choose a reason for hiding this comment

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

This is also already done

role="treeitem"
:aria-level="level + 1"
:class="level > 0 ? ui.itemWithChildren({ class: props.ui?.itemWithChildren }) : ui.item({ class: props.ui?.item })"
:aria-selected="model?.path === item.path"
Copy link
Member

Choose a reason for hiding this comment

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

This is already on the button.

<li
v-for="(item, index) in items"
:key="`${level}-${index}`"
role="treeitem"
Copy link
Member

Choose a reason for hiding this comment

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

This is already on the button.

@benjamincanac
Copy link
Member

Closing in favor of #4945.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants