Skip to content

[Chatbot] - Drop custom styles from CodeBlockMessage #934

Closed

Description

@rebeccaalpert

Chatbot Component Area

Message Content (Text, Markdown, Citations)

Describe the feature

We want to make it easier to handle Felt changes by dropping more custom styles from ChatBot. Messages have a lot of custom styles in packages/module/src/Message/CodeBlockMessage/CodeBlockMessage.scss.

Let's see what we can drop. We are manually adding a file type to the CodeBlock in packages/module/src/Message/CodeBlockMessage/CodeBlockMessage.tsx. Remove this. We also override CodeBlock to add syntax highlighting in packages/module/src/MarkdownContent/MarkdownRenderer.tsx. If we go with the CodeBlock as-is, we can drop import 'highlight.js/styles/vs2015.css'; and import rehypeHighlight from 'rehype-highlight';

Expected Data Structure

No response

Conversational Flow

No response

Visuals & Mockups

No response

Conversational Accessibility

No response

Validation

  • This request aligns with PatternFly AI/Chatbot design guidelines.

  • I have searched for existing chatbot-specific components.


Jira Issue: FELT-4409

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions