Skip to content

Conversation

devversion
Copy link
Member

  • Adds ripples to the MatButtonToggle component
  • Fixes that the focus overlay for button toggles shows on mouse/touch press.
  • Properly stops monitoring through the FocusMonitor on component destroy.
  • Removes unnecessary mixin for focus-overlay color. Color can be always set, because the overlay will be toggled through opacity (performance improvement)

Closes #9442

* Adds ripples to the `MatButtonToggle` component
* Fixes that the focus overlay for button toggles shows on mouse/touch press.
* Properly stops monitoring through the `FocusMonitor` on component destroy.
* Removes unnecessary mixin for focus-overlay color. Color can be always set, because the overlay will be toggled through `opacity` (performance improvement)

Closes angular#9442
@devversion devversion added pr: needs review target: major This PR is targeted for the next major release labels Feb 11, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 11, 2018
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

expect(groupElement.querySelectorAll('.mat-ripple-element').length).toBe(1);
});

it('should allow disabling ripples', () => {
Copy link
Member

Choose a reason for hiding this comment

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

"should allow ripples to be disabled"

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@devversion devversion added the action: merge The PR is ready for merge by the caretaker label Feb 11, 2018
Copy link
Contributor

@tinayuangao tinayuangao left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn merged commit 53417d4 into angular:master Feb 13, 2018
@devversion devversion deleted the feat/button-toggle-ripples branch February 13, 2018 17:09
@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 8, 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 target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding ripples to button-toggle
5 participants