Skip to content

Tooltip: некорректное применение стилей для слота content через b24ui и class #13

@exi66

Description

@exi66

При попытке передать стили через props b24ui в компоненте Tooltip для слота content они не применяются. При этом если задать через конфигурацию плагина все работает.

Пример кода:

<!-- For some reason the default style has a larger left padding ps-[26px] -->
<!-- Padding is not applied to the content slot -->
<B24Tooltip
  :delay-duration="0"
  text="Open on GitHub"
  :b24ui="{
    content: 'ps-3.25',
  }"
>
  <B24Button label="Open" />
</B24Tooltip>
<!-- Padding is applied, but it also applies to the trigger -->
<B24Tooltip :delay-duration="0" text="Open on GitHub" class="ps-3.25">
  <B24Button label="Open" />
</B24Tooltip>

Репозиторий воспроизводящий проблему

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions