akveo / akveo/nebular

Change Text Message Background 's Color by parameter

Đang mở
#2,326 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
8.1k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Issue type

**I'm submitting a ...** (check one with "x")

* [ ] bug report
* [x] feature request

### Issue description

**Current behavior:**
At the present the message backgorund on the chat component is set by the _reply_ attribute.

**Expected behavior:**
What I'm looking for is to change the background colour of a message if I marked it as favourite. I have added the property {favourite: true/false} on the message JSON input, but I'm not able to set the background colour basis on this parameter

**Steps to reproduce:**

I supose I have to change the property .text.background but I dont know how to enhance the class in order to have the property _favourite_ per message on the css

**Related code:**
` nb-chat-message-text {
align-items: flex-start;

.text {
@include nb-ltr(border-top-left-radius, 0);
@include nb-rtl(border-top-right-radius, 0);
background: nb-theme(chat-message-background);
color: nb-theme(chat-message-text-color);
}
}`

### Other information:

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.