Fix badge color not affected (#18826)

* Fix badge color not affected

* Generate user role css
This commit is contained in:
Jeong Arm authored and GitHub committed 2022-07-19 01:06:11 +02:00
1 parent ec83e2a35e
commit f248d95be2
2 files changed
+5 -3

No files matched your search

+2
View File
@@ -5,6 +5,8 @@
<%- UserRole.where(highlighted: true).select { |role| role.color.present? }.each do |role| %>
.user-role-<%= role.id %> {
--user-role-accent: <%= role.color %>;
--user-role-background: <%= role.color + '19' %>;
--user-role-border: <%= role.color + '80' %>;
}
<%- end %>