Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 30, 2025
1 parent effe49e commit 0177b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/categories/class/categorie.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,7 @@ public function getNomUrl($withpicto = 0, $option = '', $maxlength = 0, $morepar
}

// Check contrast with background and correct text color
$forced_color = 'categtextwhite'; // We want color white because the background is dark (grey or other)
$forced_color = 'categtextwhite'; // We want color white because the getNomUrl of a tag is always called inside a dark background like '<span color="bbb"></span>' to show it as a tag. TODO Add this in param to force when called outside of span.
if ($this->color) {
if (colorIsLight($this->color)) { // If color is light, we force color to dark
$forced_color = 'categtextblack';
Expand Down

0 comments on commit 0177b4c

Please sign in to comment.