nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.45k stars 383 forks source link

Range slider broken #1754

Closed spencerjsmall closed 3 weeks ago

spencerjsmall commented 3 weeks ago

Environment

Version

2.15.1

Reproduction

Can provide if necessasry

Description

Thanks again for such a great library. One issue I'm encountering is that the range component seems to be styled incorrectly:

Screenshot 2024-05-06 at 11 11 44 AM

The progress bar grows in both directions from the center of the range, instead of tracking with the handle. This occurs both within and outside of UFormGroup, and I haven't modified the component at all (no styling overrides, etc.). Any ideas?

Additional context

No response

Logs

No response

noook commented 3 weeks ago

A reproduction is always necessary! As no one else has mentioned this issue this might be caused by something specific to your project.

If you could share a reproduction so we can isolate the issue, it would be great!

spencerjsmall commented 3 weeks ago

Fixed. The inner progress element needed left-0 to begin at the start of the range. Does this really work for others OOTB? :ui="{ progress: { base: 'w-full left-0' } }"