components icon indicating copy to clipboard operation
components copied to clipboard

Slider input dimensions

Open wagnermaciel opened this issue 2 years ago • 1 comments

wagnermaciel avatar Dec 14 '23 17:12 wagnermaciel

Fixes slider imprecision which was not properly resolved along with https://github.com/angular/components/pull/28193

Problem 1

The slider's translateX value clamping also needs to account for the tick mark being 3px off from the start of the slider track

Before

Screenshot 2023-12-14 at 12 56 55 PM

After

Screenshot 2023-12-14 at 12 51 32 PM

Problem 2

The hidden input's dimensions were not adjusted to also fit precisely between the first and last tick marks

Before

Screenshot 2023-12-14 at 1 01 56 PM

After

Screenshot 2023-12-14 at 1 09 38 PM

wagnermaciel avatar Dec 14 '23 18:12 wagnermaciel

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.