Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

refactor(top-app-bar): Remove [de]registerEventHandler methods from adapters #4701

Merged
merged 21 commits into from
May 17, 2019

Conversation

moog16
Copy link
Contributor

@moog16 moog16 commented May 10, 2019

related #4527 & #2813

BREAKING CHANGE: remove adapter methods registerNavigationIconInteractionHandler, deregisterNavigationIconInteractionHandler, registerScrollHandler, deregisterScrollHandler, registerResizeHandler, deregisterResizeHandler.

Matt Goo and others added 12 commits April 29, 2019 14:20
Remove the top and bottom padding from the components. Remove the top and bottom margins from the button content. Button content should be center aligned. Use a <button> tag for the chip.

BREAKING CHANGE: Update mdc-chip-leading-icon-margin and mdc-chip-trailing-icon-margin mixins signatures to take only left and right margin values.
…dleClick/#handleKeydown. (#4655)

BREAKING CHANGE: Dialog `Foundation#handleInteraction` has been split into two methods: `#handleClick` and `#handleKeydown`.
Remove the top and bottom padding from the components. Remove the top and bottom margins from the button content. Button content should be center aligned. Use a <button> tag for the chip.

BREAKING CHANGE: Update mdc-chip-leading-icon-margin and mdc-chip-trailing-icon-margin mixins signatures to take only left and right margin values.
…dleClick/#handleKeydown. (#4655)

BREAKING CHANGE: Dialog `Foundation#handleInteraction` has been split into two methods: `#handleClick` and `#handleKeydown`.
…on group (#4620)

BREAKING CHANGE: Replaced adapter methods getParentElement, getSelectedElementIndex with getSelectedSiblingOfItemAtIndex, isSelectableItemAtIndex.
@codecov-io
Copy link

codecov-io commented May 10, 2019

Codecov Report

Merging #4701 into develop will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4701      +/-   ##
===========================================
+ Coverage    98.95%   98.96%   +0.01%     
===========================================
  Files          129      129              
  Lines         6302     6285      -17     
  Branches       821      820       -1     
===========================================
- Hits          6236     6220      -16     
+ Misses          65       64       -1     
  Partials         1        1
Impacted Files Coverage Δ
packages/mdc-top-app-bar/foundation.ts 100% <100%> (ø) ⬆️
packages/mdc-top-app-bar/short/foundation.ts 100% <100%> (+7.4%) ⬆️
packages/mdc-top-app-bar/fixed/foundation.ts 100% <100%> (ø) ⬆️
packages/mdc-top-app-bar/component.ts 100% <100%> (ø) ⬆️
packages/mdc-top-app-bar/standard/foundation.ts 100% <100%> (ø) ⬆️
packages/mdc-dialog/component.ts 99% <0%> (-1%) ⬇️
packages/mdc-dialog/foundation.ts 99.34% <0%> (-0.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ddbcd4...f16c067. Read the comment docs.

@mdc-web-bot
Copy link
Collaborator

All 648 screenshot tests passed for commit cc44b25 vs. develop! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 648 screenshot tests passed for commit 4c056e1 vs. develop! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 648 screenshot tests passed for commit 20a6ce0 vs. develop! 💯🎉

@abhiomkar abhiomkar changed the title fix(top-app-bar): update register/deregister events api refactor(top-app-bar): Remove [de]registerEventHandler methods from adapters May 15, 2019
Copy link
Collaborator

@abhiomkar abhiomkar left a comment

Choose a reason for hiding this comment

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

LGTM.

Re-opened unresolved comments.

@mdc-web-bot
Copy link
Collaborator

All 693 screenshot tests passed for commit 1e08cb9 vs. develop! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 693 screenshot tests passed for commit 7de95ed vs. develop! 💯🎉

@@ -21,7 +21,6 @@
* THE SOFTWARE.
*/

import {MDCTopAppBarAdapter} from '../adapter';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like the coverage score went down, can we aim to have 100% test coverage?

image

@mdc-web-bot
Copy link
Collaborator

All 693 screenshot tests passed for commit 12608df vs. develop! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 693 screenshot tests passed for commit f16c067 vs. develop! 💯🎉

Copy link
Collaborator

@abhiomkar abhiomkar left a comment

Choose a reason for hiding this comment

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

LGTM.

@moog16 moog16 merged commit f9172d0 into develop May 17, 2019
@moog16 moog16 deleted the fix/topappbar/remove-register-deregister branch May 17, 2019 22:06
moog16 pushed a commit that referenced this pull request May 28, 2019
…dapters (#4701)

BREAKING CHANGE: Replaced adapter methods getParentElement, getSelectedElementIndex with getSelectedSiblingOfItemAtIndex, isSelectableItemAtIndex.
moog16 pushed a commit that referenced this pull request Jun 3, 2019
…dapters (#4701)

BREAKING CHANGE: Replaced adapter methods getParentElement, getSelectedElementIndex with getSelectedSiblingOfItemAtIndex, isSelectableItemAtIndex.
abhiomkar pushed a commit that referenced this pull request Jun 11, 2019
…dapters (#4701)

BREAKING CHANGE: Replaced adapter methods getParentElement, getSelectedElementIndex with getSelectedSiblingOfItemAtIndex, isSelectableItemAtIndex.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants