Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

portico: Don't use `dropdown-toggle` class.

Aman Agrawal9d1e977e2a51
diff --git a/templates/corporate/communities.html b/templates/corporate/communities.html
index 130ebde9162..2885aebfa7e 100644
--- a/templates/corporate/communities.html
+++ b/templates/corporate/communities.html
@@ -35,7 +35,7 @@
</div>
<div class="integration-categories-dropdown">
- <div class="dropdown-toggle">
+ <div class="integration-toggle-categories-dropdown">
<h3 class="dropdown-category-label">{% trans %}Filter by category{% endtrans %}</h3>
<i class="fa fa-angle-down" aria-hidden="true"></i>
</div>
diff --git a/templates/zerver/integrations/index.html b/templates/zerver/integrations/index.html
index c9d32dc90e8..834e9fff7d5 100644
--- a/templates/zerver/integrations/index.html
+++ b/templates/zerver/integrations/index.html
@@ -43,7 +43,7 @@
</div>
<div class="integration-categories-dropdown">
- <div class="dropdown-toggle">
+ <div class="integration-toggle-categories-dropdown">
<h3 class="dropdown-category-label">{% trans %}Filter by category{% endtrans %}</h3>
<i class="fa fa-angle-down" aria-hidden="true"></i>
</div>
diff --git a/web/src/portico/communities.ts b/web/src/portico/communities.ts
index 19b532ba2bf..0685fd2e336 100644
--- a/web/src/portico/communities.ts
+++ b/web/src/portico/communities.ts
@@ -26,7 +26,10 @@ $(() => {
sync_open_organizations_page_with_current_hash();
});
- $(".integration-categories-dropdown .dropdown-toggle").on("click", () => {
- toggle_categories_dropdown();
- });
+ $(".integration-categories-dropdown .integration-toggle-categories-dropdown").on(
+ "click",
+ () => {
+ toggle_categories_dropdown();
+ },
+ );
});
diff --git a/web/src/portico/integrations.js b/web/src/portico/integrations.js
index 74fc1bf3578..d1cb9388e2e 100644
--- a/web/src/portico/integrations.js
+++ b/web/src/portico/integrations.js
@@ -315,9 +315,12 @@ function integration_events() {
}
});
- $(".integration-categories-dropdown .dropdown-toggle").on("click", () => {
- toggle_categories_dropdown();
- });
+ $(".integration-categories-dropdown .integration-toggle-categories-dropdown").on(
+ "click",
+ () => {
+ toggle_categories_dropdown();
+ },
+ );
$(".integration-instruction-block").on("click", "a .integration-category", (e) => {
e.preventDefault();
diff --git a/web/styles/portico/integrations.css b/web/styles/portico/integrations.css
index da3602c6913..273effe6b12 100644
--- a/web/styles/portico/integrations.css
+++ b/web/styles/portico/integrations.css
@@ -227,7 +227,7 @@ $category-text: hsl(219deg 23% 33%);
padding: 12px 20px;
}
- .dropdown-toggle {
+ .integration-toggle-categories-dropdown {
cursor: pointer;
display: flex;
position: relative;