+
Skip to content

Conversation

HugoRCD
Copy link
Member

@HugoRCD HugoRCD commented Jun 25, 2025

🔗 Linked issue

Resolves #3880

❓ 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

image image image

@HugoRCD HugoRCD self-assigned this Jun 25, 2025
@HugoRCD HugoRCD requested a review from benjamincanac as a code owner June 25, 2025 14:29
@HugoRCD HugoRCD marked this pull request as draft June 25, 2025 14:30
@HugoRCD HugoRCD marked this pull request as ready for review June 25, 2025 14:32
Copy link
Contributor

nuxthub-admin bot commented Jun 25, 2025

✅ Deployed ui3

Deployed ui3 5b712cc to preview

🔗 feat-3880.ui-6q2.pages.dev
📌 949585df.ui-6q2.pages.dev
📱
View QR Code QR code linking to deployment URL.

📋 View deployment logs

Copy link

pkg-pr-new bot commented Jun 25, 2025

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

commit: 0621b27

@benjamincanac benjamincanac marked this pull request as draft July 3, 2025 14:29
@HugoRCD HugoRCD changed the title feat(CommandPalette): add input-trailing-icon prop and slot feat(CommandPalette): add trailing-icon to the input and actions slot Jul 3, 2025
@github-actions github-actions bot added the v4 #4488 label Oct 9, 2025
@HugoRCD HugoRCD marked this pull request as ready for review October 10, 2025 12:37
@HugoRCD HugoRCD changed the title feat(CommandPalette): add trailing-icon to the input and actions slot feat(CommandPalette)!: add trailing-icon to the input and actions slot Oct 10, 2025
:name="trailingIcon || appConfig.ui.icons.chevronRight"
:class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, item.ui?.itemTrailingIcon] })"
:name="childrenIcon || appConfig.ui.icons.chevronRight"
:class="ui.childrenIcon({ class: [props.ui?.childrenIcon, item.ui?.childrenIcon] })"
Copy link
Member

Choose a reason for hiding this comment

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

Why not keep using ui.itemTrailingIcon here? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Because in this case the icon only appears when the item has children, with itemTrailingIcon you'd think there'd be an icon for each item I think 🤔

actions: '',
close: '',
back: 'p-0',
trailingIcon: 'shrink-0 size-5 text-dimmed',
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be needed.

itemLeadingChip: 'shrink-0 size-5',
itemLeadingChipSize: 'md',
itemTrailing: 'ms-auto inline-flex gap-1.5 items-center',
childrenIcon: 'shrink-0 size-5',
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be needed.


<template v-if="close || !!slots.close" #trailing>
<template v-if="trailingIcon || close || !!slots.close || !!slots.actions" #trailing>
<UIcon v-if="trailingIcon" :name="trailingIcon" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
Copy link
Member

Choose a reason for hiding this comment

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

We should use the ui.trailingIcon from the UInput component here not from the CommandPalette. I'll make a PR to expose it (related to #4823)

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.

Trailing Icon for command-palette like select-menu

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载