Replace hard-coded strings with HEX color code to use constants

Created on 18 February 2023, almost 2 years ago
Updated 19 February 2023, almost 2 years ago

Problem/Motivation

Currently we have in some places strings hard-coded with the HEX code of some colors, like '#0d77b5', '#fff', '#000', etc. It works but there is a best practice on SonarQube to avoid using repeated strings and start using constants instead. For example: https://git.drupalcode.org/project/easy_breadcrumb/-/blob/2.x/src/EasyBr...

Proposed resolution

Create a constant class with values that was being repeated, to be able to reuse in other places as constant

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024