mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:11:12 +08:00
UX: update /new
toggle styles, class names (#23154)
* Minor style adjustments * Removes "all" count because it's redundant to the count on New * Updates generic class names with -- modifier to follow BEM and help avoid class name collisions * Hides the toggle when bulk select is enabled (the UI ends up being too busy)
This commit is contained in:
@ -5,9 +5,9 @@ module PageObjects
|
||||
class NewTopicListToggle < PageObjects::Components::Base
|
||||
COMMON_SELECTOR = ".topics-replies-toggle"
|
||||
|
||||
ALL_SELECTOR = "#{COMMON_SELECTOR}.all"
|
||||
REPLIES_SELECTOR = "#{COMMON_SELECTOR}.replies"
|
||||
TOPICS_SELECTOR = "#{COMMON_SELECTOR}.topics"
|
||||
ALL_SELECTOR = "#{COMMON_SELECTOR}.--all"
|
||||
REPLIES_SELECTOR = "#{COMMON_SELECTOR}.--replies"
|
||||
TOPICS_SELECTOR = "#{COMMON_SELECTOR}.--topics"
|
||||
|
||||
def not_rendered?
|
||||
has_no_css?(COMMON_SELECTOR)
|
||||
|
Reference in New Issue
Block a user