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

chore: remove FocusZoneMode #2265

Merged
merged 8 commits into from
Jan 23, 2020
Merged

chore: remove FocusZoneMode #2265

merged 8 commits into from
Jan 23, 2020

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Jan 21, 2020

BREAKING CHANGES

This PR removes:

  • mode property from focusZone configuration accessibility behaviors
  • FocusZoneMode and FOCUSZONE_WRAP_ATTRIBUTE are no longer exported

Motivation

FocusZoneMode is never actually used as in all cases we used FocusZoneMode.Embed mode. It simplifies logic under renderComponent() and allows to have only single way to work with FocusZone. Related to #1980 as simplifies FocusZone integration.

@layershifter layershifter changed the title [WIP] chore: remove FocusZoneMode chore: remove FocusZoneMode Jan 23, 2020
@@ -18,9 +17,7 @@ describe('ChatMessage', () => {
chatMessageImplementsShorthandProp('content', Box, { mapsValueToProp: 'children' })

describe('accessibility', () => {
handlesAccessibility(ChatMessage, {
focusZoneDefinition: (chatMessageBehavior as AccessibilityDefinition).focusZone,
Copy link
Member Author

Choose a reason for hiding this comment

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

This thing was broken as chatMessageBehavior is a function, there is no focusZone prop

@DustyTheBot
Copy link
Collaborator

DustyTheBot commented Jan 23, 2020

Perf comparison

Status Scenario Fluent TPI Fabric TPI Ratio Iterations Ticks
🔧 Avatar.Fluent 0.57 0.38 1.5:1 2000 1133
🔧 Button.Fluent 1.29 0.22 5.86:1 1000 1286
🔧 Checkbox.Fluent 1.54 0.27 5.7:1 1000 1539
🔧 Dialog.Fluent 0.33 0.17 1.94:1 5000 1645
🔧 Dropdown.Fluent 3.36 0.45 7.47:1 1000 3355
🔧 Icon.Fluent 0.24 0.03 8:1 5000 1208
🔧 Image.Fluent 0.11 0.07 1.57:1 5000 550
🔧 Slider.Fluent 1.86 0.31 6:1 1000 1857
🦄 Text.Fluent 0.05 0.17 0.29:1 5000 269
🦄 Tooltip.Fluent 0.43 18.19 0.02:1 5000 2172

🔧 Needs work     🎯 On target     🦄 Amazing

Generated by 🚫 dangerJS

Co-Authored-By: Marija Najdova <[email protected]>
@layershifter layershifter merged commit 9208c19 into master Jan 23, 2020
@layershifter layershifter deleted the chore/drop-fz-wrap branch January 23, 2020 16:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants