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

Expose useDarkMode as prop for use in Data Explorer

    XMLWordPrintableJSON

Details

    • Icon: Story Story
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • No version
    • None
    • None
    • None
    • Not Needed

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: