Skip to content

Add #tag-content which only replaces the content inside a #tag (such as text) #323

@Finrod927

Description

@Finrod927

Hi (again 😊)

I'm using the option slot to customize the options with some icons, and I wanted to use the tag slot to do the same for selected options.

But I also wanted to keep the original style of tags so I looked into what's done by default and replicated inside the tag slot:

<template #tag="{ option, removeOption }">
  <div class="multi-value">
    <Icon ... />
    <div class="multi-value-label">{{ option.label }}</div>
    <button class="multi-value-remove" type="button" @click="removeOption">&times;</button>
  </div>
</template>

But unfortunately, the style defined for multi-value classes is scoped and so does not style my tags at all.

Playground link to see what I mean.

Could it be possible to not scope the default style? So we can customize the content and keep the default style?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestnext-releaseWill be closed in the next release (done in master branch)questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions