Skip to content

Commit

Permalink
Merge pull request #205 from rebeccaalpert/message-background
Browse files Browse the repository at this point in the history
fix(Message): Remove background and adjust padding for Bot messages
  • Loading branch information
nicolethoen authored Oct 10, 2024
2 parents d953ff5 + eeb9e35 commit cc77a75
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/module/src/Message/TextMessage/TextMessage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
// Need to inline shorter text
.pf-chatbot__message-text {
width: fit-content;
padding: var(--pf-t--chatbot-message--type--padding);
background-color: var(--pf-t--chatbot-message--type--background--color--default);
padding: var(--pf-t--chatbot-message--type--padding) 0 var(--pf-t--chatbot-message--type--padding) 0;
border-radius: var(--pf-t--chatbot-message--type--border--radius);

.pf-v6-c-content,
Expand All @@ -22,7 +21,7 @@
}

code {
background-color: initial; // this is a temporary fix while design works out what kind of tokens they want to use for the message bubbles; PF does not offer the variety of grays required
background-color: var(--pf-t--chatbot-message--type--background--color--default);
font-size: var(--pf-t--global--font--size--body--default);
}
}
Expand All @@ -31,6 +30,7 @@
.pf-chatbot__message-text {
background-color: var(--pf-t--chatbot-message--type--background--color--primary);
color: var(--pf-t--chatbot-message--type--text--color--primary);
padding: var(--pf-t--chatbot-message--type--padding);

.pf-v6-c-content,
.pf-v6-c-content--small,
Expand All @@ -39,5 +39,9 @@
a {
color: var(--pf-t--chatbot-message--type--text--color--primary);
}

code {
background-color: initial;
}
}
}

0 comments on commit cc77a75

Please sign in to comment.