Skip to content

Last line length changes when parent component set to display none #141

@james-jenkinson

Description

@james-jenkinson

When the text to be truncated is part of a component who's display property is set to none, on re-appearing the length of the last line changes, often causing a new line.

Example can be seen here: https://codepen.io/jajenkinson/pen/PoGQRRb?editors=0110

Steps to reproduce

  • Hover of the card
  • Confirm the text is properly truncated to three lines
  • Hovering multiple times the text will remain correctly truncated
  • Click the button to hide the card
  • Click again to show the card
  • Confirm the text is incorrectly truncated

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