Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6874

Expose useDarkMode as prop for use in Data Explorer

    • Type: Icon: Story Story
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      Problem Statement/Rationale

      Data Explorer uses Compass components directly but would still like to be able to toggle between light and dark mode. Currently this is not possible as the light/ dark mode is determined by the use-theme.tsx hook.

      Is it possible to expose an optional prop that allows Data Explorer to control the configured light/ dark mode based on the Cloud user's preferences?

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Expected Results

      What do you expect to happen?

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            jack.weir@mongodb.com Jack Weir
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: