Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOAPPX-333] Add dark mode support to all the Module… components #298

Merged
merged 18 commits into from
Jul 8, 2024

Conversation

dmnplb
Copy link
Collaborator

@dmnplb dmnplb commented Jun 25, 2024

Short description

This PR adds the dark mode support to all the Module… components

List of changes proposed in this pull request

  • Refactor code to apply theme keys to the color prop in the various typographic styles
  • Refactor code to use PressableModuleBase in all the components
  • Add the new ModuleStatic component to render the non-interactive version of the module. It can accept:
    • Two props: startBlock and endBlock
    • Single prop: children (standard mode)
  • Update some examples included in the Modules screen to test all the possible variants

Preview

dark-mode-modules.mp4

How to test

  1. Launch the example app
  2. Check the Modules screen, both in light and dark mode

@dmnplb dmnplb requested review from a team as code owners June 25, 2024 13:35
Copy link
Contributor

@mastro993 mastro993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmnplb dmnplb merged commit 883cb15 into main Jul 8, 2024
6 checks passed
@dmnplb dmnplb deleted the IOAPPX-333-add-dark-mode-support branch July 8, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants