mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:48:03 +08:00
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:
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user