mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
css: Use a class for spoiler header text.
Having the :not() rule there affected the performance, see https://chat.zulip.org/#narrow/stream/6-frontend/topic/CSS.20selector.20performance/near/1920156 for more details.
This commit is contained in:
committed by
Tim Abbott
parent
28d9c02479
commit
4a7983fad3
@@ -286,6 +286,8 @@ export const update_elements = ($content: JQuery): void => {
|
||||
$(this).append($("<p>").text($t({defaultMessage: "Spoiler"})));
|
||||
}
|
||||
|
||||
$(this).find("p").addClass("spoiler-header-text");
|
||||
|
||||
// Add the expand/collapse button to spoiler blocks
|
||||
const toggle_button_html =
|
||||
'<span class="spoiler-button" aria-expanded="false"><span class="spoiler-arrow"></span></span>';
|
||||
|
||||
Reference in New Issue
Block a user