Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(FocusZone): Upgrade to the latest version #1772

Merged
merged 12 commits into from
Aug 12, 2019

Conversation

sophieH29
Copy link
Contributor

@sophieH29 sophieH29 commented Aug 8, 2019

Upgrade FocusZone to the latest version from fabric-ui library.

Changes made based on these PRs:

@sophieH29 sophieH29 added ⚙️ enhancement New feature or request 🚀 ready for review accessibility All the Accessibility tasks and bugs should be tagged with this. labels Aug 8, 2019
@sophieH29 sophieH29 self-assigned this Aug 8, 2019
@codecov
Copy link

codecov bot commented Aug 8, 2019

Codecov Report

Merging #1772 into master will increase coverage by 0.3%.
The diff coverage is 93.33%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1772     +/-   ##
=========================================
+ Coverage   69.77%   70.07%   +0.3%     
=========================================
  Files         867      867             
  Lines        7354     7429     +75     
  Branches     2159     2161      +2     
=========================================
+ Hits         5131     5206     +75     
  Misses       2215     2215             
  Partials        8        8
Impacted Files Coverage Δ
...eact/src/lib/accessibility/FocusZone/FocusZone.tsx 89.65% <92.2%> (+1.12%) ⬆️
.../src/lib/accessibility/FocusZone/focusUtilities.ts 93.19% <96.42%> (+1.32%) ⬆️

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 39967a9...a78a04c. Read the comment docs.

packages/react/test/specs/lib/FocusZone-test.tsx Outdated Show resolved Hide resolved
packages/react/test/specs/lib/FocusZone-test.tsx Outdated Show resolved Hide resolved
packages/react/test/specs/lib/FocusZone-test.tsx Outdated Show resolved Hide resolved
packages/react/test/specs/lib/FocusZone-test.tsx Outdated Show resolved Hide resolved
@lucivpav
Copy link
Contributor

lucivpav commented Aug 9, 2019

Please also update CHANGELOG

@@ -26,6 +26,12 @@ This is a list of changes made to this Stardust copy of FocusZone in comparison
- Handle keyDownCapture based on `shouldHandleKeyDownCapture` prop @sophieH29 ([#563](https://github.com/stardust-ui/react/pull/563))
- Add `bidirectionalDomOrder` direction allowing arrow keys navigation following DOM order @sophieH29 ([#1637](https://github.com/stardust-ui/react/pull/1647))

### Upgrade `FocusZone` to the latest version from `fabric-ui` @sophieH29 ([#1772](https://github.com/stardust-ui/react/pull/1772))
- Restore focus on removing item ([OfficeDev/office-ui-fabric-react#7818](https://github.com/OfficeDev/office-ui-fabric-react/pull/7818))
Copy link
Member

Choose a reason for hiding this comment

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

I don't see any UTs added for 7818.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

### Upgrade `FocusZone` to the latest version from `fabric-ui` @sophieH29 ([#1772](https://github.com/stardust-ui/react/pull/1772))
- Restore focus on removing item ([OfficeDev/office-ui-fabric-react#7818](https://github.com/OfficeDev/office-ui-fabric-react/pull/7818))
- Reduce global event listeners ([OfficeDev/office-ui-fabric-react#7958](https://github.com/OfficeDev/office-ui-fabric-react/pull/7958))
- Track innerzones correctly ([OfficeDev/office-ui-fabric-react#8560](https://github.com/OfficeDev/office-ui-fabric-react/pull/8560))
Copy link
Member

Choose a reason for hiding this comment

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

No UTs from 8560.

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 didn't like an idea to add a public static method to FZ API to test it as here https://github.com/OfficeDev/office-ui-fabric-react/pull/8560/files#diff-2949b523d6a4d1f7e2e111abb6557158R82
If you're ok with that, I'll add it

Copy link
Member

Choose a reason for hiding this comment

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

I would rather add it

@sophieH29 sophieH29 merged commit 8b52fbb into master Aug 12, 2019
@delete-merged-branch delete-merged-branch bot deleted the feat/upgrade-focus-zone-and-trap-zone branch August 12, 2019 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility All the Accessibility tasks and bugs should be tagged with this. ⚙️ enhancement New feature or request 🚀 ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants