Skip to content

[FluentDesignTheme] OfficeColor changes incorrectly update body[data-theme] attribute #4082

@s97712

Description

@s97712

🐛 Bug Report

When changing the OfficeColor property through FluentDesignTheme, it sets the body[data-theme] attribute to the OfficeColor value. This can cause theme issues like scrollbar color problems.

Steps to Reproduce

  1. Go to https://www.fluentui-blazor.net/
  2. Click the settings icon to open the settings panel
  3. Open browser developer tools (F12)
  4. Change the OfficeColor property in the settings panel
  5. Watch the data-theme attribute value on the <body> element in developer tools

Expected Behavior

Changing OfficeColor should not affect body[data-theme]

Actual Behavior

  • After changing OfficeColor, body[data-theme] gets set to the current OfficeColor value
  • This breaks the theme system design

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions