Clay: ClayProgressBar takes dynamic space for the progress value

Created on 26 Apr 2021  路  5Comments  路  Source: liferay/clay

  • [X] I have searched the issues of this repository and believe that this is not a duplicate.

Is there an example you can provide via codesandbox.com?

Screenshot 2021-04-26 at 16 15 56

What are the steps to reproduce?

Use the default API to create a progress bar with the Clay component ClayProgressBar (out-of-the-box behavior).

What is the expected result?

The bar takes more or less space depending on the number/s or image in the right side (see attached screenshot). This means that if we have a progress that continuously change (because it's updating the progress value), the user experience is that the component has a glitch.

Environment

| Tech | Version |
| ----- | ------- |
| Clay | v3.x |
| React | 16.12.0 |

3.x clay-css bug

Most helpful comment

Sure @jbalsas

  • The bar must remain fixed with the same size, thus the set (bar + text/icon) too.
  • The check-circle-icon and the text percentages have to be left-aligned.
  • For percentages smaller than 10%, the little shifting while the percentage goes from 0 to 10 is something bearable as long as it doesn't push adyacent components (a possible solution to avoid the shift it's to have always the second digit).

Frame 534

All 5 comments

Makes sense, @pat270 could you take a look at this?

@drakonux, @hold-shift could you provide guidance on UX expectations for the observed behaviour?

Sure @jbalsas

  • The bar must remain fixed with the same size, thus the set (bar + text/icon) too.
  • The check-circle-icon and the text percentages have to be left-aligned.
  • For percentages smaller than 10%, the little shifting while the percentage goes from 0 to 10 is something bearable as long as it doesn't push adyacent components (a possible solution to avoid the shift it's to have always the second digit).

Frame 534

Sorry I missed this one. I'll send a fix today.

This issue has been merged and will be released in DXP at https://issues.liferay.com/browse/LPS-130562

Was this page helpful?
0 / 5 - 0 ratings

Related issues

drakonux picture drakonux  路  4Comments

joseigor picture joseigor  路  5Comments

bryceosterhaus picture bryceosterhaus  路  4Comments

drakonux picture drakonux  路  5Comments

bryceosterhaus picture bryceosterhaus  路  5Comments