Skip to content

bug: alignment issue with otp component #4587

Description

@pdanpdan

Reproduction URL (Required)

https://daisyui.com/components/otp/#otp-joined

What version of daisyUI are you using?

No response

Which browsers are you seeing the problem on?

No response

Describe your issue

At least for me (chrome linux wayland) there is a difference between how the :after is rendered in docs and in play: in play all looks good while in docs the outline for joined otp is 2px to the left (the 2px from translate).

Docs: https://daisyui.com/components/otp/#otp-joined
Play: https://play.tailwindcss.com/eoG4qc2A7F?file=css

Also when the whole joined otp is filled the right (end) is clipped (it looks ok if the clip is uniform -3.5px) - this one is clear

https://play.tailwindcss.com/JHwbHID5n4?file=css looks good in codepen even without the translate, so I think it only shows when in a non-static positioning situation.
The 2 changes are maked with HERE, but it's not tested on safari which was the reason some of the styles were applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions