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

feat: support custom background color #3814

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

eirikhaugstulen
Copy link
Contributor

Tech-summary:

  • Support custom background color in our enrollment pages
  • Add a "backgroundColor" prop to the datastore config
  • This prop has to be a # followed by 6 characters

@@ -10,6 +10,7 @@ import { DefaultPageTitle, EnrollmentPageKeys } from './DefaultEnrollmentLayout.

const getEnrollmentPageStyles = () => ({
container: {
minHeight: '90vh',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Open for ideas on this. The page only took up the size of the widgets, but that might not have been the full size. Also, App-platform adds a small padding at the bottom, so setting it to 90 instead of 100 means it will work as corrected.

Copy link
Member

Choose a reason for hiding this comment

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

Seems to work and I don't have a better suggestion.

@@ -10,6 +10,7 @@ import { DefaultPageTitle, EnrollmentPageKeys } from './DefaultEnrollmentLayout.

const getEnrollmentPageStyles = () => ({
container: {
minHeight: '90vh',
Copy link
Member

Choose a reason for hiding this comment

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

Seems to work and I don't have a better suggestion.

@eirikhaugstulen eirikhaugstulen marked this pull request as ready for review September 26, 2024 14:51
@eirikhaugstulen eirikhaugstulen requested a review from a team as a code owner September 26, 2024 14:51
@eirikhaugstulen eirikhaugstulen merged commit 22cfe58 into master Sep 27, 2024
38 checks passed
@eirikhaugstulen eirikhaugstulen deleted the eh/feat/support-custom-background-color branch September 27, 2024 09:20
dhis2-bot added a commit that referenced this pull request Sep 27, 2024
# [101.6.0](v101.5.0...v101.6.0) (2024-09-27)

### Features

* support custom background color ([#3814](#3814)) ([22cfe58](22cfe58))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 101.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants