-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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): make min value style match mocks #2641
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just two minor comments; add "merge ready" when you're done
@@ -249,12 +256,27 @@ export class MdSlider implements ControlValueAccessor { | |||
return (this.direction == 'rtl' && !this.vertical) ? !this.invertAxis : this.invertAxis; | |||
} | |||
|
|||
/** Whether the slider is at its minimum value. */ | |||
get _isAtMinValue() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think _isMinValue
works
return DISABLED_THUMB_GAP; | ||
} | ||
if (this._isAtMinValue && !this.thumbLabel) { | ||
if (this._isActive) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could replace this inner-most if-else with a ternary
* make slider disabled state match mocks * added test * fix lint * min value style * thumb label min value style * fix lint & add tests * fix lint * addressed comments
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
mocks: https://material.io/guidelines/components/sliders.html#sliders-continuous-slider