themesberg / themesberg/flowbite

Progress: The bar has wrong radius in small percentages.

Open
#439 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
If the width of the progress is less than its height, the radiuses are smaller.

To Reproduce

  1. Set the percentage of any progress to very small value. Example: https://play.tailwindcss.com/0PQ4gkn6bE

Expected behavior
The radius of the progress bar is the same for all values.

Screenshots
Snímek obrazovky 2023-02-08 v 16 12 59

Desktop (please complete the following information):

  • OS: macOS
  • Browser Chrome

Solution
Add overflow-clip to the wrapping div and set the width of progress bar with style="transform: translateX(calc(-100% + 1%))". But there may be other solutions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the progress component and reproduce the small-percentage case using the linked Tailwind Play example. Compare the bar’s radius at small and larger values, then verify that the progress bar keeps the same radius across percentages without changing the expected component behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.