Skip to content

feat(web-components): relax setTheme() argument type to allow custom tokens#32087

Merged
marchbox merged 2 commits into
microsoft:masterfrom
marchbox:users/machi/settheme-custom
Jul 23, 2024
Merged

feat(web-components): relax setTheme() argument type to allow custom tokens#32087
marchbox merged 2 commits into
microsoft:masterfrom
marchbox:users/machi/settheme-custom

Conversation

@marchbox

Copy link
Copy Markdown
Contributor

Previous Behavior

The theme argument in setTheme(theme) is required to be the Theme type from @fluentui/tokens.

New Behavior

In order to allow custom tokens to be set in the same mechanism, we relax this type requirement, so product teams can extend and override existing themes with their own tokens.

Related Issue(s)

  • Fixes #

@marchbox marchbox self-assigned this Jul 23, 2024
@marchbox
marchbox requested a review from a team as a code owner July 23, 2024 22:22
@fabricteam

Copy link
Copy Markdown
Collaborator

📊 Bundle size report

✅ No changes found

@marchbox
marchbox merged commit 273f6aa into microsoft:master Jul 23, 2024
@marchbox
marchbox deleted the users/machi/settheme-custom branch July 23, 2024 22:33
@fabricteam

Copy link
Copy Markdown
Collaborator

🕵 fluentui-web-components-v3 No visual regressions between this PR and main

marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jul 25, 2024
* master: (77 commits)
  chore(react-examples): replace storybook deprecated api with static stories (microsoft#32074)
  [chore]: create base class for accordion item and remove style and layout specific api (microsoft#32102)
  release: applying package updates - web-components
  chore(web-components): add test for complex focus management (microsoft#32009)
  [chore]: create base class for avatar and remove style and layout specific api (microsoft#32083)
  [chore]: create base class for text input and remove style and layout specific api (microsoft#32080)
  release: applying package updates - web-components
  chore:(react-nav-preview) Scaffold AppItem (microsoft#32088)
  docs(`react-teaching-popover`): Adding subcomponents' API to `TeachingPopover` documentation page (microsoft#32084)
  feat(web-components): relax setTheme() argument type to allow custom tokens (microsoft#32087)
  release: applying package updates - react-components
  [Chore]: Create Spinner base class to abstract out style and layout specific api. (microsoft#32067)
  [Chore]: Create Progress Bar base class to abstract out style and layout specific api. (microsoft#32066)
  fix(react-storybook-addon): transform decorator to function in withAriaLive() (microsoft#32011)
  fix(motion): improve Web Animations API detection in tests (microsoft#32029)
  chore(eslint-plugin): removes type dependency on @fluentui/react-utilities internals in ban-instanceof-html-element rule (microsoft#32072)
  release: applying package updates - react v8
  release: applying package updates - web-components
  Chore: Create Divider base class to abstract out style and layout specific api (microsoft#32065)
  fix(TimePicker): Clear text when date value changes to null (microsoft#31626)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants