mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
buttons: Rename sticky-bottom-option to sticky-bottom-option-button.
Fixes part of #35006.
This commit is contained in:
committed by
Tim Abbott
parent
6815a65a18
commit
c9fd9ade11
@@ -267,11 +267,11 @@ export class DropdownWidget {
|
||||
$popper.find(".list-item.current_selection").removeClass("current_selection");
|
||||
if (this.sticky_bottom_option) {
|
||||
$popper
|
||||
.find(".sticky-bottom-option.current_selection")
|
||||
.find(".sticky-bottom-option-button.current_selection")
|
||||
.removeClass("current_selection");
|
||||
}
|
||||
if (this.current_hover_index === list_items.length && this.sticky_bottom_option) {
|
||||
$popper.find(".sticky-bottom-option").addClass("current_selection");
|
||||
$popper.find(".sticky-bottom-option-button").addClass("current_selection");
|
||||
} else {
|
||||
const current_hover_item = list_items[this.current_hover_index];
|
||||
assert(current_hover_item !== undefined);
|
||||
@@ -382,7 +382,7 @@ export class DropdownWidget {
|
||||
}
|
||||
|
||||
const $search_input = $popper.find(".dropdown-list-search-input");
|
||||
const $sticky_bottom_option = $popper.find(".sticky-bottom-option");
|
||||
const $sticky_bottom_option = $popper.find(".sticky-bottom-option-button");
|
||||
assert(this.list_widget !== undefined);
|
||||
const list_items = this.list_widget.get_current_list();
|
||||
if (
|
||||
@@ -627,7 +627,7 @@ export class DropdownWidget {
|
||||
});
|
||||
|
||||
// Click on $sticky_bottom_option.
|
||||
$popper.on("click", ".sticky-bottom-option", (event) => {
|
||||
$popper.on("click", ".sticky-bottom-option-button", (event) => {
|
||||
this.item_click_callback(event, instance, this, true);
|
||||
this.current_hover_index = 0;
|
||||
});
|
||||
|
@@ -1347,7 +1347,7 @@ input.settings_text_input {
|
||||
color: hsl(1.06deg 44.66% 50.39%);
|
||||
}
|
||||
|
||||
.sticky-bottom-option {
|
||||
.sticky-bottom-option-button {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding: 7px 14px;
|
||||
|
@@ -9,7 +9,7 @@
|
||||
{{t 'No matching results'}}
|
||||
</div>
|
||||
{{#if sticky_bottom_option}}
|
||||
<button class="sticky-bottom-option">
|
||||
<button class="sticky-bottom-option-button">
|
||||
{{sticky_bottom_option}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
Reference in New Issue
Block a user