feat: improve colorIsDark helper
(also improve contrast of white label text)
This commit is contained in:

committed by
Gitea

parent
72925fb938
commit
297d283090
@ -15,7 +15,7 @@ export default class LabelModel extends AbstractModel {
|
||||
if (this.hexColor.substring(0, 1) !== '#') {
|
||||
this.hexColor = '#' + this.hexColor
|
||||
}
|
||||
this.textColor = colorIsDark(this.hexColor) ? '#4a4a4a' : '#e5e5e5'
|
||||
this.textColor = colorIsDark(this.hexColor) ? '#4a4a4a' : '#fff'
|
||||
this.createdBy = new UserModel(this.createdBy)
|
||||
|
||||
this.created = new Date(this.created)
|
||||
|
Reference in New Issue
Block a user