Skip to content

Multiple anchors each with a badge within a DIV position=relative are grouped together instead of remaining to the right of each ANCHOR #1024

@mP1

Description

@mP1

Describe the bug
Note badges work just fine when they they are not within a DIV with position=relative

Example of "problem".
Image

To Reproduce
Create DIV with position=relative
Create a child DIV with position=absolute bottom=0 right=0
Add multiple A each with a Badge.

<div class="dui dui-flex-row dui-h-full dui-items-start dui-gap-1" style="position: absolute; bottom: 0px; right: 15px; height: fit-content; visibility: visible;"><a class="dui" aria-expanded="true" aria-disabled="false" id="viewport-createLabel-Link" href="#/1/Untitled/cell/D1/label" tabindex="0" style="margin: 5px; font-family: Inter; font-size: 15px; font-weight: 400; text-wrap: nowrap; text-decoration: underline; color: var(--dui-hyperlink-color);">Create Label</a><a class="dui" aria-expanded="true" aria-disabled="false" id="viewport-label-Link" href="#/1/Untitled/cell/D1/labels" tabindex="0" style="margin: 5px; font-family: Inter; font-size: 15px; font-weight: 400; text-wrap: nowrap; text-decoration: underline; color: var(--dui-hyperlink-color);">Labels<span class="dui dui-badge dui-rounded-xl dui-postfix-addon dui-bg-red">0</span></a><a class="dui" aria-expanded="true" aria-disabled="false" id="viewport-references-Link" href="#/1/Untitled/cell/D1/references" tabindex="0" style="margin: 5px; font-family: Inter; font-size: 15px; font-weight: 400; text-wrap: nowrap; text-decoration: underline; color: var(--dui-hyperlink-color);">References<span class="dui dui-badge dui-rounded-xl dui-postfix-addon dui-bg-red">0</span></a><a class="dui" aria-expanded="true" aria-disabled="false" id="viewport-delete-Link" href="#/1/Untitled/cell/D1/delete" tabindex="0" style="margin: 5px; font-family: Inter; font-size: 15px; font-weight: 400; text-wrap: nowrap; text-decoration: underline; color: var(--dui-hyperlink-color);">Delete</a></div>

Latest Chrome (2025/3/27)
Latest Domino-ui (2.0.4)

Image

Expected

[Create Label] [Labels](0) [References](0) [Delete]

Actual

[Create Label] [Labels] [References] [Delete] (0)(0)

Note that expected works fine when not wrapped inside a parent with position=ABSOLUTE etc.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions