department-of-veterans-affairs / va-mobile-library

https://department-of-veterans-affairs.github.io/va-mobile-library/
ISC License
0 stars 0 forks source link

[Bug] Fix dark mode on storybook web Docs pages #193

Closed narin closed 4 months ago

narin commented 4 months ago

Ticket #53

Description of Change

Quick fix to enable dark mode toggling on Docs pages. Dark mode was previously only working on the stories. This seems to be a known bug for Storybook. Found a workaround here. This also required renaming preview.ts to preview.tsx since it now includes React code.

Testing Packages

N/A (tested locally)

Screenshots/Video

https://github.com/department-of-veterans-affairs/va-mobile-library/assets/786704/88be8545-4019-4dfd-ad1c-52a0b22d3536

Testing

PR Checklist

Code reviewer validation:

Publish

If changes warrant a new version per the versioning guidelines and the PR is approved and ready to merge:

narin commented 4 months ago

Fixed link. Couldn't connect it to the issue since it was closed already. ZenHub automatically connected the referenced storybook issue. Removed the connection.