plane icon indicating copy to clipboard operation
plane copied to clipboard

[WEB-2532] fix: custom theme mutation logic

Open aaryan610 opened this issue 5 months ago • 1 comments

Problem:

MutationObserver logic to update the custom theme is too expensive and unnecessary.

Solution:

Update the applyTheme function to select the themeElement with the attribute [data-theme] instead of [data-theme="custom"] to make sure themeElement always exists.

Plane issue: WEB-2532

Summary by CodeRabbit

  • New Features

    • Enhanced theme application logic for a more streamlined user experience.
  • Bug Fixes

    • Eliminated unnecessary dependencies on DOM elements, improving performance and reliability of theme settings.

aaryan610 avatar Sep 24 '24 08:09 aaryan610