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:
Kris
2023-08-20 21:34:12 -04:00
committed by GitHub
parent b03c26ebf5
commit 2a49757f35
10 changed files with 45 additions and 66 deletions

View File

@ -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)