Added open/close animation for design settings sidebar groups

refs https://github.com/TryGhost/Team/issues/1149

- basic switch to `{{liquid-if}}` for animating the expand/collapse interaction
This commit is contained in:
Kevin Ansfield 2021-10-18 17:24:17 +01:00
parent 3f0dbb0e8b
commit 6dd1d058e5

View File

@ -10,13 +10,13 @@
<span class="gh-nav-button-expand">{{svg-jar (if isOpen "arrow-down-stroke" "arrow-right-stroke")}}</span>
{{svg-jar "paintbrush"}}Brand
</button>
{{#if isOpen}}
{{#liquid-if isOpen}}
<div class="gh-nav-design-settings">
<Settings::Design::GeneralSettingsForm
@updatePreview={{perform this.themeManagement.updatePreviewHtmlTask}}
/>
</div>
{{/if}}
{{/liquid-if}}
{{/let}}
{{#each this.customThemeSettings.settingGroups as |group|}}
@ -26,14 +26,14 @@
{{svg-jar group.icon}} {{group.name}}
</button>
{{#if isOpen}}
{{#liquid-if isOpen}}
<div class="gh-nav-design-settings">
<Settings::Design::ThemeSettingsForm
@themeSettings={{group.settings}}
@updatePreview={{perform this.themeManagement.updatePreviewHtmlTask}}
/>
</div>
{{/if}}
{{/liquid-if}}
{{/let}}
{{/each}}
</div>