This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #2010 +/- ##
=========================================
- Coverage 76.71% 75.8% -0.91%
=========================================
Files 160 160
Lines 5493 5572 +79
Branches 1586 1631 +45
=========================================
+ Hits 4214 4224 +10
- Misses 1266 1334 +68
- Partials 13 14 +1
Continue to review full report at Codecov.
|
layershifter
reviewed
Oct 7, 2019
layershifter
reviewed
Oct 7, 2019
layershifter
reviewed
Oct 7, 2019
packages/react/src/themes/teams/components/Toolbar/toolbarStyles.ts
Outdated
Show resolved
Hide resolved
layershifter
reviewed
Oct 7, 2019
packages/react/src/themes/teams/components/Toolbar/toolbarMenuStyles.ts
Outdated
Show resolved
Hide resolved
layershifter
reviewed
Oct 7, 2019
docs/src/examples/components/Toolbar/Content/ToolbarExampleOverflow.shorthand.tsx
Outdated
Show resolved
Hide resolved
layershifter
reviewed
Oct 7, 2019
layershifter
reviewed
Oct 9, 2019
layershifter
requested review from
dvdzkwsk,
kuzhelov,
levithomason and
mnajdova
as code owners
October 9, 2019 16:03
layershifter
approved these changes
Oct 9, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE
Legacy support for Toolbar overflow using
onReduceItems
has been removed.Refactor to the new
overflow
implementation for supported scenarios or reimplement the logic on client side for use cases which are not covered.Motivation (old approach problems)
onReduceItems
implementation was generic allowing number of edge-case scenarios:The problem with the approach was that to show Toolbar it was necessary to render it multiple times which took significant amount of time (hundreds of ms).
New approach
The new implementation takes vanilla DOM/CSS approach.
overflow: hidden
.New approach limitations
Toolbar
Known issues
ToolbarItem
with popup set to inline breaks the contract as it renders two sibling elements inside the root DOM element.Fixes #1935, fixes #1893, fixes #1885.