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

feat(slider): vertical mode #1878

Merged
merged 28 commits into from
Dec 2, 2016
Merged

Conversation

mmalerba
Copy link
Contributor

had to rework the css a bit, but its for the better since all transitions are now either transform or opacity

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 15, 2016
@mmalerba
Copy link
Contributor Author

blocked on #1794

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM, just one minor comment.

@@ -106,21 +110,21 @@ describe('MdSlider', () => {
});

it('should update the track fill on click', () => {
expect(trackFillElement.style.flexBasis).toBe('0%');
expect(trackFillElement.style.transform).toBe('scaleX(0)');
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, why change from flex-basis to transform instead of changing the flex axis? Just the general preference to transform?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I realized I could do it all with transform and figured that was preferable.

@@ -283,13 +360,20 @@ export class MdSlider implements ControlValueAccessor {
this.value = this.min;
break;
case LEFT_ARROW:
this._increment(-1);
// It's kind of debatable what's the correct thing to do for inverted sliders. For a sighted
Copy link
Member

Choose a reason for hiding this comment

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

I'd change "kind of debatable" bit and simply say that, for inverted sliders, we care more about the a11y experience than making having the keyboard shortcuts "look right" for sighted users. (I do think this is the right call).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Dec 1, 2016
@tinayuangao tinayuangao merged commit deb940f into angular:master Dec 2, 2016
@mmalerba mmalerba deleted the slider-vert branch December 2, 2016 21:56
@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