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

feat(NcListItem): introduce 'details' slot #5146

Merged
merged 1 commit into from Jan 28, 2024

Conversation

Antreesy
Copy link
Contributor

☑️ Resolves

  • Provide an option to use slot (for embedding icon / custom template) instead of prop string

🖼️ Screenshots

Screenshot from 2024-01-26 12-31-55

🚧 Tasks

  • Design review
  • Code review

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy added enhancement New feature or request 3. to review Waiting for reviews design Design, UX, interface and interaction design feature: list-item Related to the list-item component labels Jan 26, 2024
@Antreesy Antreesy added this to the 8.6.0 milestone Jan 26, 2024
@Antreesy Antreesy self-assigned this Jan 26, 2024
Copy link
Contributor

@marcoambrosini marcoambrosini left a comment

Choose a reason for hiding this comment

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

Nice :)

:counter-number="44">
<template #icon>
<NcAvatar :size="44" user="janedoe" display-name="Jane Doe" />
</template>
<template #subname>
In this slot you can put both text and other components such as icons
</template>
<template #details>
<LinkIcon :size="16"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

should it not be 20 as that's our default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as bubble icon below, and close to the font size. But that's up to end developer anyway, I believe

@susnux
Copy link
Contributor

susnux commented Jan 28, 2024

/backport to next

@susnux susnux merged commit 244585a into master Jan 28, 2024
15 checks passed
@susnux susnux deleted the feat/noid/introduce-details-slot branch January 28, 2024 20:39
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 design Design, UX, interface and interaction design enhancement New feature or request feature: list-item Related to the list-item component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants