Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(slider): hide ticks when slider is disabled #2687

Merged
merged 2 commits into from
Jan 20, 2017

Conversation

devversion
Copy link
Member

@devversion devversion commented Jan 17, 2017

  • No longer shows the ticks on hover when the slider is disabled.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 17, 2017
@@ -5,7 +5,6 @@
@mixin md-slider-theme($theme) {
$accent: map-get($theme, accent);

// TODO(iveysaur): Find an implementation to hide the track under a disabled thumb.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This TODO was actually referring to something else. If you look at the spec, you'll see that there's a tiny empty space around the thumb that covers up the track when the slider is disabled; this is talking about that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that already implemented? (I probably miss something)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I didn't realize.

@jelbourn
Copy link
Member

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jan 17, 2017
@mmalerba
Copy link
Contributor

It looks like this causes non-disabled sliders to not render the last tick. Make sure to rebase on top of #2641 it adds some more corner cases to watch out for.

Please include me as a reviewer on slider PRs in the future.

@mmalerba mmalerba added in progress This issue is currently in progress and removed pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jan 19, 2017
@mmalerba mmalerba self-requested a review January 19, 2017 07:37
@mmalerba mmalerba self-assigned this Jan 19, 2017
@devversion
Copy link
Member Author

devversion commented Jan 19, 2017

@mmalerba Yeah I locally tested this PR with your PR #2641 but at this time it wasn't merged yet (will rebase it today)

Also from looking at the diff, there hasn't been any change for tick sequencing. It only hides the .md-slider-ticks class when a slider is disabled?

And yes can assign you to future slider PR's

@mmalerba
Copy link
Contributor

I think the css rule precedence started getting unwieldy so I added a md-hide-last-tick class, you could probably just add || disabled to the condition for that class

* No longer shows the ticks on hover, when the slider is disabled.
@devversion
Copy link
Member Author

@mmalerba Updated everything as discussed on Slack.

@devversion devversion added pr: needs review and removed in progress This issue is currently in progress labels Jan 19, 2017
@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jan 19, 2017
@mmalerba mmalerba merged commit e9ec8ab into angular:master Jan 20, 2017
@devversion devversion deleted the fix/slider-disabled branch January 20, 2017 19:16
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants