UX: Make table wrapper popup button icon only (#20820)

This commit is contained in:
Keegan George 2023-03-24 13:23:05 -07:00 committed by GitHub
parent e47af9bb72
commit c66323f964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,16 +141,15 @@ export default {
"open-popup-link",
"btn-default",
"btn",
"btn-icon-text",
"btn-expand-table"
"btn-icon",
"btn-expand-table",
"no-text"
);
const expandIcon = create(
iconNode("discourse-expand", { class: "expand-table-icon" })
);
const openPopupText = document.createTextNode(
I18n.t("fullscreen_table.expand_btn")
);
openPopupBtn.append(expandIcon, openPopupText);
openPopupBtn.title = I18n.t("fullscreen_table.expand_btn");
openPopupBtn.append(expandIcon);
return openPopupBtn;
}