Skip to content

Conversation

@behowell
Copy link
Contributor

Current Behavior

The cursor is a pointer when hovering a disabled Switch's label.

New Behavior

  • Use the default cursor (not pointer) on the label when the Switch is disabled
  • Simplify the styles controlling the padding between the Switch and label

@behowell behowell self-assigned this Sep 29, 2022
@behowell behowell marked this pull request as ready for review September 29, 2022 23:07
@behowell behowell requested review from a team and khmakoto as code owners September 29, 2022 23:07
@fabricteam
Copy link
Collaborator

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-switch
Switch
33.743 kB
10.654 kB
33.342 kB
10.557 kB
-401 B
-97 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.156 kB
52.385 kB
react-components
react-components: FluentProvider & webLightTheme
33.4 kB
11.008 kB
react-portal-compat
PortalCompatProvider
5.857 kB
1.978 kB
🤖 This report was generated against 2e8d044a4ce2c1095f13e08716c3ba13069ebf0d

@codesandbox-ci
Copy link

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 cde8a30:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@size-auditor
Copy link

size-auditor bot commented Sep 29, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 2e8d044a4ce2c1095f13e08716c3ba13069ebf0d (build)

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1275 1256 5000
Button mount 913 932 5000
FluentProvider mount 1484 1499 5000
FluentProviderWithTheme mount 574 600 10
FluentProviderWithTheme virtual-rerender 538 540 10
FluentProviderWithTheme virtual-rerender-with-unmount 562 590 10
MakeStyles mount 1946 1983 50000
SpinButton mount 2342 2332 5000

@behowell behowell merged commit 6a60b17 into microsoft:master Sep 30, 2022
@behowell behowell deleted the switch/disabled-cursor-and-cleanup branch September 30, 2022 18:40
GeoffCoxMSFT pushed a commit to GeoffCoxMSFT/fluentui that referenced this pull request Oct 3, 2022
…crosoft#25026)

* Use the default cursor (not pointer) on the label when the Switch is disabled
* Simplify the styles controlling the padding between the Switch and label
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
…crosoft#25026)

* Use the default cursor (not pointer) on the label when the Switch is disabled
* Simplify the styles controlling the padding between the Switch and label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants