-
-
Notifications
You must be signed in to change notification settings - Fork 382
[Map] Add "color" support for SVG and UX Icon icons #3079
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
base: 2.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution:
- Please use the default PR template in your description
- You must add test for this new feature, in order to prevent any regression
- You also must update existing tests and snapshots, to make the CI checks pass
Thanks
protected IconType $type, | ||
protected int $width = 24, | ||
protected int $height = 24, | ||
protected ?string $color = null, // Nouvelle propriété pour la couleur |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment does not bring any value
protected ?string $color = null, // Nouvelle propriété pour la couleur | |
protected ?string $color = null, |
* Note: This only has an effect on SvgIcon and UxIcon types when rendered client-side by the JavaScript controller. | ||
* The color should be a valid CSS color string (e.g., 'red', '#FF0000', 'rgb(255,0,0)'). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Note: This only has an effect on SvgIcon and UxIcon types when rendered client-side by the JavaScript controller. | |
* The color should be a valid CSS color string (e.g., 'red', '#FF0000', 'rgb(255,0,0)'). | |
* Must be a valid CSS color (e.g.: 'red', '#FF0000', 'rgb(255,0,0)'). Only affects UX Icon or SVG icons. |
'type' => $this->type->value, | ||
'width' => $this->width, | ||
'height' => $this->height, | ||
'color' => $this->color, // Ajout de la couleur au tableau de sérialisation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment does not bring any value
'color' => $this->color, // Ajout de la couleur au tableau de sérialisation | |
'color' => $this->color, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry but for now we cannot accept this PR.
We cannot add a specific non typed/non-validated field on an central object without tests nor full working usage...
Did you try to use metadata on your markers ? Or to follow the other guidelines / advises given on your issue ?
Bonjour,
Désolé je ne sais pas trop ou faire ceci et j'espère ne pas tout casser.
Est ce possible de rajouter cette fonction couleur sur l'icon ?
Merci