mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
A11Y: Accessible full-screen and minimize composer buttons (#17936)
This commit is contained in:
parent
c790b0305c
commit
2e09a88a29
@ -2,12 +2,12 @@
|
|||||||
<PluginOutlet @name="before-composer-toggles" @tagName="span" @connectorTagName="div" />
|
<PluginOutlet @name="before-composer-toggles" @tagName="span" @connectorTagName="div" />
|
||||||
|
|
||||||
{{#if this.site.mobileView}}
|
{{#if this.site.mobileView}}
|
||||||
<DButton @class="btn-flat toggle-toolbar btn-mini-toggle" @icon="bars" @action={{this.toggleToolbar}} @title={{this.toggleToolbarTitle}} @preventFocus={{true}} @tabindex={{-1}} />
|
<DButton @class="btn-flat toggle-toolbar btn-mini-toggle" @icon="bars" @action={{this.toggleToolbar}} @title={{this.toggleToolbarTitle}} @preventFocus={{true}} />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<DButton @class="btn-flat toggler toggle-minimize btn-mini-toggle" @icon={{this.toggleIcon}} @action={{this.toggleComposer}} @title={{this.toggleTitle}} @tabindex={{-1}} />
|
|
||||||
|
|
||||||
{{#if this.showFullScreenButton}}
|
{{#if this.showFullScreenButton}}
|
||||||
<DButton @class="btn-flat toggle-fullscreen btn-mini-toggle" @icon={{this.fullscreenIcon}} @action={{this.toggleFullscreen}} @title={{this.fullscreenTitle}} @tabindex={{-1}} />
|
<DButton @class="btn-flat toggle-fullscreen btn-mini-toggle" @icon={{this.fullscreenIcon}} @action={{this.toggleFullscreen}} @title={{this.fullscreenTitle}} />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<DButton @class="btn-flat toggler toggle-minimize btn-mini-toggle" @icon={{this.toggleIcon}} @action={{this.toggleComposer}} @title={{this.toggleTitle}} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -90,9 +90,6 @@ html.composer-open {
|
|||||||
.saving-text {
|
.saving-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.toggle-minimize {
|
|
||||||
order: 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.saving .saving-text {
|
&.saving .saving-text {
|
||||||
@ -164,10 +161,6 @@ html.composer-open {
|
|||||||
.d-icon {
|
.d-icon {
|
||||||
color: var(--primary-medium);
|
color: var(--primary-medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggle-minimize {
|
|
||||||
order: 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user