[Time List] Expanded Mode does not handle small horizontal spaces well #7696
Labels
bug:regression
It used to work. Now it doesn't :(
bug:visual
Visual problem. Not a functional issue
severity:medium
type:bug
Summary
When a Time List is in a Display or Flexible Layout, and the horizontal space is small enough, the components begin to spill out of the frame, causing all the elements to stop lining up correctly. Referencing the image below, notice that the countdowns are spilling out of the Time List wrapper, and that users would have to horizontally scroll to see its entire contents. Also, this is causing the state icons (such as the clock visualization) to stop being lined up.
From an initial investigation, it looks like this is because the countdown element doesn't wrap properly. Additionally, the class that holds the time bounds (
.c-tli__bounds
) has a dynamic width that is calculated based off its own event. So each of these classes end up having different widths, causing the elements to stop lining up.This might be a regression, but its hard to say. There's been minimal testing of the new SA tool in layouts.
Expected vs Current Behavior
When a Time List view has a small horizontal space, we should have the components either wrap down or be truncated. We should also probably add a maximum width to the wrappers that hold the components together to maintain a consistent layout.
Steps to Reproduce
Environment
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: