Bug 1953155 - Enable expand on hover option and remove expand on hover coming soon message r=sidebar-reviewers,nsharpley

Differential Revision: https://phabricator.services.mozilla.com/D241293
This commit is contained in:
Kelly Cochrane
2025-03-18 22:03:50 +00:00
parent c7b2bd0575
commit 11a04a64b6
5 changed files with 1 additions and 74 deletions

View File

@@ -22,8 +22,6 @@ const VISIBILITY_SETTING_PREF = "sidebar.visibility";
const EXPAND_ON_HOVER_PREF = "sidebar.expandOnHover";
const POSITION_SETTING_PREF = "sidebar.position_start";
const TAB_DIRECTION_SETTING_PREF = "sidebar.verticalTabs";
const EXPAND_ON_HOVER_MESSAGE_DISMISSED_PREF =
"sidebar.expandOnHoverMessage.dismissed";
export class SidebarCustomize extends SidebarPage {
constructor() {
@@ -251,26 +249,6 @@ export class SidebarCustomize extends SidebarPage {
</div>`;
}
expandOnHoverMessageTemplate() {
if (
!Services.prefs.getBoolPref(EXPAND_ON_HOVER_MESSAGE_DISMISSED_PREF, false)
) {
return html`
<moz-message-bar
class="setting-message expand-on-hover-message"
data-l10n-id="expand-on-hover-message"
@message-bar:user-dismissed=${this.onExpandOnHoverMessageDismissed}
dismissable
></moz-message-bar>
`;
}
return "";
}
onExpandOnHoverMessageDismissed() {
Services.prefs.setBoolPref(EXPAND_ON_HOVER_MESSAGE_DISMISSED_PREF, true);
}
render() {
let extensions = this.getWindow().SidebarController.getExtensions();
return html`
@@ -322,7 +300,6 @@ export class SidebarCustomize extends SidebarPage {
`
)}
</moz-checkbox>
${this.expandOnHoverMessageTemplate()}
</moz-fieldset>
<moz-fieldset class="customize-group medium-top-margin no-label">
<moz-checkbox