Skip to content

EspoCRM – Open Source CRM Application

Button style change

Yurii59bf0d8b8e06
diff --git a/client/modules/crm/src/views/meeting/detail.js b/client/modules/crm/src/views/meeting/detail.js
index 2092647468..ffdd1ca903 100644
--- a/client/modules/crm/src/views/meeting/detail.js
+++ b/client/modules/crm/src/views/meeting/detail.js
@@ -57,6 +57,7 @@ class MeetingDetailView extends DetailView {
this.addMenuItem('buttons', {
name: 'setAcceptanceStatus',
text: '',
+ style: 'text',
hidden: true,
onClick: () => this.actionSetAcceptanceStatus(),
});
diff --git a/client/src/views/detail.ts b/client/src/views/detail.ts
index c04acd1b53..4c16347694 100644
--- a/client/src/views/detail.ts
+++ b/client/src/views/detail.ts
@@ -470,7 +470,9 @@ class DetailView<S extends DetailViewSchema = DetailViewSchema> extends MainView
this.addMenuItem('buttons', {
name: 'unfollow',
label: 'Followed',
- style: 'success',
+ style: 'text',
+ iconHtml: '<span class="fas fa-rss fa-sm text-success"></span>',
+ className: 'text-success',
action: 'unfollow',
hidden: !isFollowed,
onClick: () => this.actionUnfollow(),
@@ -479,7 +481,7 @@ class DetailView<S extends DetailViewSchema = DetailViewSchema> extends MainView
this.addMenuItem('buttons', {
name: 'follow',
label: 'Follow',
- style: 'default',
+ style: 'text',
iconHtml: '<span class="fas fa-rss fa-sm"></span>',
text: this.translate('Follow'),
action: 'follow',
diff --git a/frontend/less/espo/elements/buttons.less b/frontend/less/espo/elements/buttons.less
index 28ccaee607..43f56a89c8 100644
--- a/frontend/less/espo/elements/buttons.less
+++ b/frontend/less/espo/elements/buttons.less
@@ -288,7 +288,8 @@ a.btn {
border-color: transparent;
}
}
- &.btn-success {
+ &.btn-success,
+ &.text-success {
color: var(--state-success-text);
background-color: transparent;
border-color: transparent;
@@ -302,7 +303,8 @@ a.btn {
border-color: transparent;
}
}
- &.btn-danger {
+ &.btn-danger,
+ &.text-danger {
color: var(--state-danger-text);
background-color: transparent;
border-color: transparent;
@@ -316,7 +318,8 @@ a.btn {
border-color: transparent;
}
}
- &.btn-warning {
+ &.btn-warning,
+ &.text-warning {
color: var(--state-warning-text);
background-color: transparent;
border-color: transparent;
@@ -330,7 +333,8 @@ a.btn {
border-color: transparent;
}
}
- &.btn-info {
+ &.btn-info,
+ &.text-ingo {
color: var(--state-info-text);
background-color: transparent;
border-color: transparent;