Skip to content

feat(material-experimental/mdc-slider): WIP implement the basics for … #21165

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

Closed
wants to merge 2 commits into from

Conversation

wagnermaciel
Copy link
Contributor

…mdc slider

@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 29, 2020
@wagnermaciel wagnermaciel force-pushed the mdc-slider branch 5 times, most recently from 4cfcec2 to fcfccf4 Compare November 30, 2020 20:21
@wagnermaciel wagnermaciel marked this pull request as ready for review November 30, 2020 20:51
@wagnermaciel
Copy link
Contributor Author

I haven't started working on making this backwards compatible yet.

Also, this is a pretty massive change so I'm happy to stretch this into multiple commits or PRs or whatever ya'll prefer

<h1>Default Slider</h1>
Label <mat-slider #slidey aria-label="Basic slider"></mat-slider>
{{slidey.value}}
<p>Continuous slider</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Usually we leave the mdc demo pretty much the same as the non-mdc demo. That way we can verify that all the same usages still work. Is there a reason you changed it so much here?

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 wanted to test each of the different ways the slider could be used. I'll revert this once I'm done testing. For now I'll add a todo to remember to do so

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.

I did a quick pass through for a first round of comments

'[min]': 'min',
'[max]': 'max',
'[step]': 'step',
'[attr.value]': 'value',
Copy link
Member

Choose a reason for hiding this comment

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

Does [value] not work? (if no, we should have a comment that explains why)

registerWindowEventHandler: () => {},
deregisterWindowEventHandler: () => {},
removeTrackActiveStyleProperty: (_propertyName: string) => {},
hasClass: (_className: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

Can you extract this adapter out into a standalone class? See this PR for a reference #19980

@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 Jan 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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.

3 participants