Skip to content

EspoCRM – Open Source CRM Application

Link color selectable

Yuriic2082dd63264
diff --git a/client/res/templates/record/list.tpl b/client/res/templates/record/list.tpl
index e92b44a9d8..c99ecbd63d 100644
--- a/client/res/templates/record/list.tpl
+++ b/client/res/templates/record/list.tpl
@@ -138,7 +138,7 @@
{{#if collectionLength}}
<div
- class="list {{#if showMoreActive}} has-show-more {{/if}}"
+ class="list {{#if showMoreActive}} has-show-more {{/if}} {{#if selectable}} list-selectable {{/if}}"
data-scope="{{scope}}"
tabindex="-1"
>
diff --git a/client/src/views/record/list-base.ts b/client/src/views/record/list-base.ts
index c7e70c9948..1dfc70f89e 100644
--- a/client/src/views/record/list-base.ts
+++ b/client/src/views/record/list-base.ts
@@ -845,6 +845,7 @@ abstract class ListBaseRecordView<
checkboxColumnWidth: checkboxColumnWidth,
noDataDisabled: noDataDisabled,
hasStickyBar: hasStickyBar,
+ selectable: this.selectable,
};
}
diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.less
index c07b9f7ce6..58bb2bded9 100644
--- a/frontend/less/espo/custom.less
+++ b/frontend/less/espo/custom.less
@@ -432,6 +432,12 @@ div.list-expanded > ul > li > div.expanded-row {
}
}
}
+
+ &:not(.list-selectable) {
+ a.link {
+ .link-content-color();
+ }
+ }
}
.numeric-text {
diff --git a/frontend/less/espo/elements/type.less b/frontend/less/espo/elements/type.less
index 0439429eb6..3266923140 100644
--- a/frontend/less/espo/elements/type.less
+++ b/frontend/less/espo/elements/type.less
@@ -258,20 +258,8 @@ a.text-soft {
}
}
-a.link,
a.text-content {
- &,
- &:hover,
- &:focus {
- color: var(--text-color);
- }
-
- &:hover {
- > .fas,
- > .far {
- color: var(--text-gray-color);
- }
- }
+ .link-content-color();
}
a.text-default {
@@ -310,7 +298,8 @@ a.no-underline {
.text-info {
.text-emphasis-variant-espo(var(--state-info-text), var(--state-info-text-10));
}
-.text-warning {
+.text-warning,
+a.text-warning {
.text-emphasis-variant-espo(var(--state-warning-text); var(--state-warning-text-10));
}
.text-danger {
diff --git a/frontend/less/espo/misc/kanban.less b/frontend/less/espo/misc/kanban.less
index 7c1b05a476..b4cba05e83 100644
--- a/frontend/less/espo/misc/kanban.less
+++ b/frontend/less/espo/misc/kanban.less
@@ -144,6 +144,10 @@ div.list-kanban > div > table {
}
}
+
+ a.link {
+ .link-content-color();
+ }
}
}
div:last-child > .form-group {
diff --git a/frontend/less/espo/mixins.less b/frontend/less/espo/mixins.less
index 726a22fc6e..d3532fcda1 100644
--- a/frontend/less/espo/mixins.less
+++ b/frontend/less/espo/mixins.less
@@ -220,3 +220,18 @@
border-radius: var(--dropdown-border-radius);
border-width: var(--dropdown-border-width);
}
+
+.link-content-color() {
+ &,
+ &:hover,
+ &:focus {
+ color: var(--text-color);
+ }
+
+ &:hover {
+ > .fas,
+ > .far {
+ color: var(--text-gray-color);
+ }
+ }
+}