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

Add Initial Toggle Button #517

Merged
merged 20 commits into from
Jun 3, 2016
Merged

Add Initial Toggle Button #517

merged 20 commits into from
Jun 3, 2016

Conversation

iveysaur
Copy link
Contributor

R: @jelbourn @robertmesserle @kara

This is a start for the toggle buttons. Currently supports exclusive and multiple selection with styles and the disabled state. Exclusive selection has a value which is set to the selected toggle.

Still needs:

  • A value for multiple selection
  • Focus states
  • Keyboard selection
  • NgModel support

Design Doc

@googlebot googlebot added the cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla label May 25, 2016
@googlebot
Copy link

CLAs look good, thanks!

@googlebot googlebot added cla: yes PR author has agreed to Google's Contributor License Agreement and removed cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla labels May 25, 2016
[checked]="checked"
[disabled]="disabled"
[name]="name"
(change)="onClick()"/>
Copy link
Member

Choose a reason for hiding this comment

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

We generally haven't been using the / at the end of void elements.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it from radio, sorry about that! Should there be a space between " and > or does it not matter?

@jelbourn jelbourn added in progress This issue is currently in progress and removed pr: needs review labels May 26, 2016
@iveysaur
Copy link
Contributor Author

All comments addressed.

@iveysaur iveysaur added pr: needs review and removed in progress This issue is currently in progress labels May 26, 2016
value: any;
}

/** Exclusive selection button toggle group. */
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 expand this comment to include something like "Behaves like a radio-button group."

}

md-button-toggle md-icon {
vertical-align: middle;
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we want to do this for all direct children? Or just md-icon?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have a strong opinion, I just wanted to be safe for this iteration when I wrote that.

@jelbourn jelbourn merged commit 013eabd into angular:master Jun 3, 2016
@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
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.

7 participants