MetaMask / design-tokens

Design tokens to be used throughout MetaMask products
https://metamask.github.io/design-tokens/?path=/docs/getting-started-introduction--docs
26 stars 15 forks source link

fix: move data attribute to light theme variables #631

Closed georgewrmarshall closed 6 months ago

georgewrmarshall commented 6 months ago

Description

This PR addresses a critical issue where the data-theme="light" attribute was incorrectly applied only to brand variables, resulting in the light mode theme not being activated correctly across all theme variables. The change ensures that the data-theme="light" attribute now correctly influences all relevant theme variables, ensuring a consistent and accurate representation of the light mode across the application.

Reason for Change

The light mode theme was not being applied correctly due to the data-theme="light" attribute being limited to brand variables. This led to inconsistencies in the UI where certain elements did not reflect the intended light mode appearance.

Improvement/Solution

By moving the data-theme="light" attribute to affect all theme variables, we ensure a uniform application of the light mode theme across the application, enhancing the user experience and visual consistency.

Related issues

Fixes: https://github.com/MetaMask/design-tokens/issues/626

Manual testing steps

Same as here https://github.com/MetaMask/design-tokens/pull/627

Screenshots/Recordings

Same as https://github.com/MetaMask/design-tokens/pull/627

Pre-merge author checklist

Pre-merge reviewer checklist