Skip to content

UI BUG : Navigation button text overflows from parant span box #6460

Closed

Description

@godspeed-03

Website or app
https://react.dev/reference/react/startTransition

Repro steps
When hovering on the next navigation button, the text overflows the Box.
issue image
Screenshot from 2023-12-02 23-55-42

code -
Just needed to warp the link text with Break-word property.

How often does this bug happen?
Every time

Activity

  1. nitesh9109 commented on Dec 2, 2023

    @nitesh9109

    @godspeed-03, I am also using the Brave browser. However, this problem doesn't occur in Brave, instead, it happens in Firefox.

  2. godspeed-03 commented on Dec 2, 2023

    @godspeed-03
    Author

    Hii @nitesh9109 , I'm also using brave browser with my screen at 100%.
    Screenshot 2023-12-02 215209
    It can be seen that the text overflows from the link box.

  3. iamdebobrota commented on Dec 15, 2023

    @iamdebobrota

    Attempted

  4. iamdebobrota commented on Dec 15, 2023

    @iamdebobrota

    Raised the PR, have fixed the UI : #6493

  5. iamdebobrota commented on Dec 15, 2023

    @iamdebobrota

    Here is an example :
    image

  6. prajwalkulkarni commented on Dec 28, 2023

    @prajwalkulkarni
    Contributor

    I think using break-all or break-word still wouldn't fix the issue completely. What if the string is even longer? The container height would be increased to avoid overflowing and accommodate the complete string in multiline.
    The same goes with increasing the parent width, or even alternatively setting the width to be auto with a min-width. It would mess up the design system and lead to visual inconsistencies.
    Instead, I think without altering the width of the container, we can hide the overflowing content with ellipsis and on hover show the complete string on the tooltip.

  7. rickhanlonii commented on Jan 12, 2024

    @rickhanlonii
    Member

    Fixed #6519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions