Shimmer: refactor in preparation for migration to OUFR#4958
Shimmer: refactor in preparation for migration to OUFR#4958Vitalius1 merged 32 commits intomicrosoft:masterfrom
Conversation
Removes some styling from shimmer container.
Setup of elements wrapper.
Extracts some logic to a new module.
Still a lot to do.
…the transition animation is done.
Refactors common styles in ShimmerLine.styles
High Contrast capability.
|
|
||
| public render(): JSX.Element { | ||
| const { | ||
| getStyles, |
There was a problem hiding this comment.
Approved, but the getStyles prop name is being replaced with styles in 6.0. Depending on when you want this merged, before or after 6.0 is merged to master, you may need to replace getStyles in the props with styles. The function getStyles within the .styles.ts file can remain getStyles.
|
@dzearing Do you know why bundlesize check is still pending? Also, is there anyone from your team available for a code review? Thanks! |
| * Optional boolean for enabling flexWrap of the container containing the shimmerElements. | ||
| * @default false | ||
| */ | ||
| flexWrap?: boolean; |
There was a problem hiding this comment.
Should this be true by default?
There was a problem hiding this comment.
No. This subcomponent is also used internally by ShimmerBase when everything stays in one line. So by default is false.
| this._warnMutuallyExclusive({ | ||
| 'lineElements': 'shimmerElements', | ||
| 'customElementsGroup': 'lineElements' | ||
| }); |
There was a problem hiding this comment.
There's no need to support deprecated props in an experimental component. Of course anything using it will have to be changed and tested.
There was a problem hiding this comment.
@JasonGore This experimental component is used in odsp-common repo in items-view and odsp-shared-react packages. So removing the deprecated props will cause a break on their side. The intention is to merge this change and right after I will migrate this component to OUFR without the deprecated props. Next step will be to go and change in odsp-common the imports from experiments to office-ui-fabric-react and use the correct props. Only when all this happens I will be able to remove the deprecated props in experiments package without breaking the contract with Shimmer API.
There was a problem hiding this comment.
Ok, thanks for the explanation
| * @deprecated Use 'top' instead | ||
| */ | ||
| TOP = 3, | ||
|
|
There was a problem hiding this comment.
No need to support deprecated values
| * @default false | ||
| * @deprecated Use 'customElementsGroup' instead. | ||
| */ | ||
| isBaseStyle?: boolean; |
There was a problem hiding this comment.
Please remove deprecated props
* master: Applying package updates. Shimmer: refactor in preparation for migration to OUFR (microsoft#4958) Applying package updates. Theming: fix error colors (microsoft#4969) MaskedTextField: Added event callback passthrough (microsoft#4956) Experiments/Nav component: Enable auto expand until the next manual expand disables the auto expand (microsoft#4996) Applying package updates. Experiments/Nav component: Auto select/expand based on the selectedKey prop (microsoft#4984) StickyPane: fix Array.from in Ie (microsoft#4982) ContextualMenu has aria-labelledBy referencing element not in DOM (microsoft#4963) Keyboard support for the slim version of experiments/Nav component and added aria attributes (microsoft#4981) Move ghdocs to wiki (microsoft#4977) Remove build artifacts (microsoft#4976) Revisited the Multi-select Combo box initial state selection fix (microsoft#4884) Applying package updates. readme cleanup (microsoft#4972) Theming: add the bodyBackgroundDarker semantic slot (microsoft#4957) Improvements for auto-select opt-in mode (microsoft#4914)
* master: (85 commits) Applying package updates. Shimmer: refactor in preparation for migration to OUFR (microsoft#4958) Applying package updates. Theming: fix error colors (microsoft#4969) MaskedTextField: Added event callback passthrough (microsoft#4956) Experiments/Nav component: Enable auto expand until the next manual expand disables the auto expand (microsoft#4996) Applying package updates. Experiments/Nav component: Auto select/expand based on the selectedKey prop (microsoft#4984) StickyPane: fix Array.from in Ie (microsoft#4982) ContextualMenu has aria-labelledBy referencing element not in DOM (microsoft#4963) Keyboard support for the slim version of experiments/Nav component and added aria attributes (microsoft#4981) Move ghdocs to wiki (microsoft#4977) Remove build artifacts (microsoft#4976) Revisited the Multi-select Combo box initial state selection fix (microsoft#4884) Applying package updates. readme cleanup (microsoft#4972) Theming: add the bodyBackgroundDarker semantic slot (microsoft#4957) Improvements for auto-select opt-in mode (microsoft#4914) Applying package updates. Revert ChoiceGroup change in 5.0 to minimize potential partner impact. (microsoft#4962) ...
Pull request checklist
$ npm run changeDescription of changes
This PR is the last refactor of Shimmer and this version is intended for migration to OUFR. Most of the changes are moving stuff around so functionally nothing changed.
Shimmer - Example. (give it a couple seconds to load
)
Things done:
Microsoft Reviewers: Open in CodeFlow