Skip to content

theme designer: fix tab states#23729

Merged
emmayjiang merged 6 commits intomicrosoft:masterfrom
emmayjiang:theme-designer-fix-tab-states
Jun 27, 2022
Merged

theme designer: fix tab states#23729
emmayjiang merged 6 commits intomicrosoft:masterfrom
emmayjiang:theme-designer-fix-tab-states

Conversation

@emmayjiang
Copy link
Copy Markdown
Contributor

Added a local state to sidebar that allows for the custom theme to be stored, and also so that switching tabs/switching themes updates correctly.

@emmayjiang emmayjiang requested a review from a team as a code owner June 24, 2022 23:24
@fabricteam
Copy link
Copy Markdown
Collaborator

📊 Bundle size report

🤖 This report was generated against 5e326ed2e7068e8eb75df4a54495c27206ec831b

@codesandbox-ci
Copy link
Copy Markdown

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 057a704:

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

@size-auditor
Copy link
Copy Markdown

size-auditor bot commented Jun 24, 2022

Asset size changes

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

Baseline commit: f9504b54b73caba83893c92fe0352153d4012312 (build)

@micahgodbolt
Copy link
Copy Markdown
Member

this allows form state to persist across tab switching. i agree that this is a better bit of UI rather than losing your custom theme just by switching tabs. Checked the deploy site and i'm not seeing any of the focus loss issues we had in the past.

@emmayjiang emmayjiang merged commit fe62c7f into microsoft:master Jun 27, 2022
rohitpagariya pushed a commit to rohitpagariya/fluentui that referenced this pull request Jun 28, 2022
* add custom theme to export

* add typing, update format

* remove reducer

* preserve custom state
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