[COMPASS-6874] Expose useDarkMode as prop for use in Data Explorer Created: 26/May/23  Updated: 27/Oct/23  Resolved: 06/Jul/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Story Priority: Major - P3
Reporter: Jack Weir Assignee: Sergey Petushkov
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Documentation Changes: 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.


Generated at Wed Feb 07 22:44:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.