-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add message bounce options styles (#264)
### 🎯 Goal `MessageBounceOptions` refers to the contents of a modal dialog displayed when clicking on a message that bounced because of moderation rules. ### 🛠 Implementation details This is a simple dialog with three buttons. Buttons are customizable via standard component overrides. ### 🎨 UI Changes 
- Loading branch information
1 parent
87617c9
commit 048aae5
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/v2/styles/MessageBounceOptions/MessageBounceOptions-layout.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.str-chat__message-bounce-options { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--str-chat__spacing-9); | ||
|
||
.str-chat__message-bounce-actions { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--str-chat__spacing-2); | ||
} | ||
|
||
.str-chat__message-bounce-edit, | ||
.str-chat__message-bounce-send, | ||
.str-chat__message-bounce-delete { | ||
cursor: pointer; | ||
padding: var(--str-chat__spacing-2); | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
src/v2/styles/MessageBounceOptions/MessageBounceOptions-theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@use '../utils'; | ||
|
||
.str-chat { | ||
/* The text color used for the edit button */ | ||
--str-chat__message-bounce-edit-button-color: var(--str-chat__primary-color); | ||
|
||
/* The text color used for the send button */ | ||
--str-chat__message-bounce-send-button-color: var(--str-chat__primary-color); | ||
|
||
/* The text color used for the delete button */ | ||
--str-chat__message-bounce-delete-button-color: var(--str-chat__primary-color); | ||
|
||
/* The background color of the button */ | ||
--str-chat__message-bounce-button-background-color: transparent; | ||
|
||
/* Top border of the button */ | ||
--str-chat__message-bounce-button-border-block-start: none; | ||
|
||
/* Bottom border of the button */ | ||
--str-chat__message-bounce-button-border-block-end: none; | ||
|
||
/* Left (right in RTL layout) button of the component */ | ||
--str-chat__message-bounce-button-border-inline-start: none; | ||
|
||
/* Right (left in RTL layout) button of the component */ | ||
--str-chat__message-bounce-button-border-inline-end: none; | ||
|
||
/* Box shadow applied to the button */ | ||
--str-chat__message-bounce-button-box-shadow: none; | ||
} | ||
|
||
.str-chat__message-bounce-options { | ||
.str-chat__message-bounce-edit, | ||
.str-chat__message-bounce-send, | ||
.str-chat__message-bounce-delete { | ||
@include utils.component-layer-overrides('message-bounce-button'); | ||
font: var(--str-chat__body-medium-text); | ||
} | ||
|
||
.str-chat__message-bounce-edit { | ||
color: var(--str-chat__message-bounce-edit-button-color); | ||
} | ||
|
||
.str-chat__message-bounce-send { | ||
color: var(--str-chat__message-bounce-send-button-color); | ||
} | ||
|
||
.str-chat__message-bounce-delete { | ||
color: var(--str-chat__message-bounce-delete-button-color); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters