ant-design / ant-design/pro-chat

👑 [需求] EditableMessage怎么修改markdown文字颜色?

Open
#153 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
897
Forks
116
PR merge metrics
No merged PRs in 30d

Description

### 🥰 需求描述

EditableMessage组件想要非全局修改markdown文字颜色 设置`markdownProps={{
style: {
color: '#1677ff',
},
}}`只能透传到`ant-typography`类,无法渗透到`.zcss-8xwwhe p`
字体颜色还是没有更改

### 🚑 其他信息

![image](https://github.com/ant-design/pro-chat/assets/75489410/9699c03a-25fc-476d-9603-ba0e6776c9fb)

![image](https://github.com/ant-design/pro-chat/assets/75489410/77e39b5d-f890-49b1-ba7e-e9da6da04762)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the EditableMessage component and trace how markdownProps reaches ant-typography and the rendered .zcss-8xwwhe p elements. Check the existing markdown rendering and styling behavior first; done means a color supplied through markdownProps changes markdown text within this component without changing it globally.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.