mirror of
https://github.com/discourse/discourse.git
synced 2026-08-03 09:53:24 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user