UX: composer use BEM + small tweaks to enabled/disabled styling (#21246)

- using BEM notation
- making animation linear instead of default ease
- small tweaks to composer state (disabled/send-disabled/send-enabled)
- fixing bug with disabled composer on mobile
This commit is contained in:
chapoi
2023-04-28 17:24:49 +09:00
committed by GitHub
parent eb0836e133
commit f29f131387
7 changed files with 52 additions and 42 deletions

View File

@ -18,7 +18,7 @@ module PageObjects
end
def click_send_message
find(".chat-composer--send-enabled .chat-composer__send-btn").click
find(".chat-composer.is-send-enabled .chat-composer__send-btn").click
end
def message_by_id_selector(id)

View File

@ -50,7 +50,7 @@ module PageObjects
def click_send_message(id)
find(thread_selector_by_id(id)).find(
".chat-composer--send-enabled .chat-composer__send-btn",
".chat-composer.is-send-enabled .chat-composer__send-btn",
).click
end