Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add range slider support for 7.0 #17913

Merged
merged 14 commits into from
Apr 29, 2021
Merged

Conversation

rockcs1992
Copy link
Contributor

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ yarn change

Description of changes

Add range slider support for 7.0. The work for v8 is already done here: #16854.
There has been asks inside Azure teams that we need this feature in V7, so this PR fulfills that.

Copy link
Collaborator

@msft-fluent-ui-bot msft-fluent-ui-bot left a comment

Choose a reason for hiding this comment

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

It looks like this change to the 7.0 branch may not have been submitted to master yet. Now that version 8 has released, all changes must be submitted to the master branch first (except in emergencies or if the change is irrelevant to version 8).

Please do one of the following:

  • If you've already created a PR to master, add a link to it
  • If the change is irrelevant to version 8, add a comment explaining why
  • Otherwise, create a PR to master with this same change, and add a link to it

After that, you can dismiss this review and remove the "needs cherry-pick" label (or ask a team member to help do so).

Want to avoid this in the future? Include text like "Cherry-pick of ####" in the PR description (where #### is the real master PR number).

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 22, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit cf7d19e:

Sandbox Source
Fluent UI Button Configuration

@size-auditor
Copy link

size-auditor bot commented Apr 22, 2021

Asset size changes

Project Bundle Baseline Size New Size Difference
office-ui-fabric-react office-ui-fabric-react-Slider 56.431 kB 59.032 kB ExceedsTolerance     2.601 kB

ExceedsTolerance Over Tolerance (1024 B) ExceedsBaseline Over Baseline BelowBaseline Below Baseline New New Deleted  Removed 1 kB = 1000 B

Baseline commit: ac2f319d76db747f0d0b1d76cbf4d63ae8864794 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 22, 2021

Perf Analysis

No significant results to display.

All results

Scenario Render type 7.0 Ticks PR Ticks Iterations Status
BaseButton mount 979 991 5000
Breadcrumb mount 44841 44527 5000
Checkbox mount 1741 1736 5000
CheckboxBase mount 1471 1464 5000
ChoiceGroup mount 5565 5678 5000
ComboBox mount 986 1023 1000
CommandBar mount 8162 8334 1000
ContextualMenu mount 15333 15421 1000
DefaultButton mount 1232 1269 5000
DetailsRow mount 4036 4125 5000
DetailsRowFast mount 4112 4048 5000
DetailsRowNoStyles mount 3925 3935 5000
Dialog mount 1780 1915 1000
DocumentCardTitle mount 1934 1933 1000
Dropdown mount 2846 2836 5000
FocusTrapZone mount 1908 1936 5000
FocusZone mount 2058 1975 5000
IconButton mount 1984 1958 5000
Label mount 347 373 5000
Layer mount 2113 2202 5000
Link mount 510 502 5000
MenuButton mount 1618 1673 5000
MessageBar mount 2244 2282 5000
Nav mount 3628 3720 1000
OverflowSet mount 1516 1573 5000
Panel mount 1607 1580 1000
Persona mount 865 894 1000
Pivot mount 1566 1601 1000
PrimaryButton mount 1437 1491 5000
Rating mount 8659 8845 5000
SearchBox mount 1442 1452 5000
Shimmer mount 2962 2857 5000
Slider mount 1593 1741 5000
SpinButton mount 5566 5644 5000
Spinner mount 468 433 5000
SplitButton mount 3520 3496 5000
Stack mount 588 556 5000
StackWithIntrinsicChildren mount 1750 1775 5000
StackWithTextChildren mount 5450 5404 5000
SwatchColorPicker mount 11302 11606 5000
TagPicker mount 3133 3100 5000
TeachingBubble mount 53947 54075 5000
Text mount 469 471 5000
TextField mount 1481 1609 5000
Toggle mount 879 959 5000
button mount 115 106 5000

Copy link
Contributor

@behowell behowell left a comment

Choose a reason for hiding this comment

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

Looks good, but we want to be sure that existing, non-ranged sliders render the same as they did before this change. I added a few comments in places that appear different, but there are probably other places that need a ranged check. There shouldn't be changes to test snapshots for unrelated components.

…ase.tsx

Co-authored-by: Ben Howell <48106640+behowell@users.noreply.github.com>
@rockcs1992 rockcs1992 requested review from behowell and removed request for joschect April 27, 2021 20:20
Copy link
Contributor

@behowell behowell left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for making the changes to clean up the snapshots.

@rockcs1992
Copy link
Contributor Author

rockcs1992 commented Apr 28, 2021

Looks good! Thanks for making the changes to clean up the snapshots.

Thanks for approval! Do you know how would we merge it though since it doesn't pass the size auditor check?

@rockcs1992 rockcs1992 enabled auto-merge (squash) April 28, 2021 18:51
@dzearing dzearing disabled auto-merge April 29, 2021 17:14
@dzearing dzearing merged commit 2967383 into microsoft:7.0 Apr 29, 2021
@msft-fluent-ui-bot
Copy link
Collaborator

🎉office-ui-fabric-react@v7.169.0 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/tsx-editor@v0.14.36 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/theme-samples@v7.2.35 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/react-cards@v0.115.47 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/mdl2-theme@v0.4.35 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/fluent-theme@v7.4.35 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/fabric-website@v7.16.64 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/fabric-website-resources@v7.9.63 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/experiments@v7.39.26 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/example-app-base@v7.19.10 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/date-time@v7.19.41 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/azure-themes@v7.7.33 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@uifabric/api-docs@v7.6.38 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/storybook@v0.6.43 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/react@v7.169.0 has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/react-examples@v0.13.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Slider needs cherry-pick Temporary label for PRs which may need to be cherry-picked to master PR: API Modified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants