code4romania / consul

Consul - Open Government and E-Participation Web Software
https://consulproject.org
GNU Affero General Public License v3.0
0 stars 4 forks source link

Allow updating background color and font color on custom pages #45

Closed taitus closed 2 years ago

taitus commented 2 years ago

References

Requirement:

e. We would like to have custom colors for page headers

Objectives

Allow define background color and font color for custom header on custom pages. In addition to background_color and font_color fields, we have also added a new field custom_header_enabled to allow set these fields (page with custom header) or create a custom page without custom header.

Visual Changes

With custom header enabled field checked does render background color and font color fields

Notes

We have to run this task after uploading to production: rake site_customization_pages:update_color_fields_values_from_deploy_yml

This will update the background color and text color for the custom pages. The values for this task have been copied from the definition of the deploy.yml file.

javierm commented 2 years ago

@decembrya Could you review the texts we've added in Romanian? Thanks! :pray:

decembrya commented 2 years ago

Translations look good 👍