UX: chat composer buttons refactor + emoji (#21852)

- Made the emoji btn blue when composer is focused
- Moved everything chat-composer-button to its own file and BEM-ified it and making the choice to only work with our own is-disabled definition instead of with the attribute :disabled, for consistency
This commit is contained in:
chapoi
2023-05-31 15:12:35 +02:00
committed by GitHub
parent f189c20578
commit 1f37fe5fa5
9 changed files with 80 additions and 85 deletions
@@ -98,7 +98,7 @@ acceptance("Discourse Chat - Composer - unreliable network", function (needs) {
skip("Sending a message with unreliable network", async function (assert) {
await visit("/chat/c/-/11");
await fillIn(".chat-composer__input", "network-error-message");
await click(".send-btn");
await click(".chat-composer-button.-send");
assert.ok(
exists(".chat-message-container[data-id='1'] .retry-staged-message-btn"),
@@ -106,7 +106,7 @@ acceptance("Discourse Chat - Composer - unreliable network", function (needs) {
);
await fillIn(".chat-composer__input", "network-error-message");
await click(".send-btn");
await click(".chat-composer-button.-send");
await publishToMessageBus(`/chat/11`, {
type: "sent",
staged_id: 1,