mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
Merge pull request #5021 from PaulAdamDavis/accessability-text
Clean up hidden accessibility text class
This commit is contained in:
commit
e283d3c98d
@ -4,42 +4,11 @@
|
|||||||
// A home for Styles that need to die in a fire, but are used
|
// A home for Styles that need to die in a fire, but are used
|
||||||
// in lots of places.
|
// in lots of places.
|
||||||
//
|
//
|
||||||
// * Utilities
|
|
||||||
// * Floating Header
|
// * Floating Header
|
||||||
// * Scroll Shadows
|
// * Scroll Shadows
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// Utilities
|
|
||||||
// --------------------------------------------------
|
|
||||||
// We have more robust alternatives in global.scss
|
|
||||||
// Are any of these actually even used anywhere?
|
|
||||||
|
|
||||||
.hidden,
|
|
||||||
.visuallyhidden,
|
|
||||||
.screen-reader-text {
|
|
||||||
border: 0;
|
|
||||||
clip: rect(0 0 0 0);
|
|
||||||
height: 1px;
|
|
||||||
margin: -1px;
|
|
||||||
overflow: hidden;
|
|
||||||
padding: 0;
|
|
||||||
position: absolute;
|
|
||||||
width: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.visuallyhidden.focusable:active,
|
|
||||||
.visuallyhidden.focusable:focus {
|
|
||||||
clip: auto;
|
|
||||||
height: auto;
|
|
||||||
margin: 0;
|
|
||||||
overflow: visible;
|
|
||||||
position: static;
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Floating Header
|
// Floating Header
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
{{render 'post-tags-input'}}
|
{{render 'post-tags-input'}}
|
||||||
|
|
||||||
<div class="publish-bar-actions">
|
<div class="publish-bar-actions">
|
||||||
<button type="button" class="post-settings" {{action "toggleSettingsMenu"}}></button>
|
<button type="button" class="post-settings" {{action "toggleSettingsMenu"}}>
|
||||||
|
<span class="sr-only">Post settings menu</span>
|
||||||
|
</button>
|
||||||
{{view "editor-save-button" id="entry-actions" classNameBindings="model.isNew:unsaved"}}
|
{{view "editor-save-button" id="entry-actions" classNameBindings="model.isNew:unsaved"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{#unless navItem.last}}
|
{{#unless navItem.last}}
|
||||||
<span class="navigation-item-drag-handle icon-grab">
|
<span class="navigation-item-drag-handle icon-grab">
|
||||||
<span class="hidden">Reorder</span>
|
<span class="sr-only">Reorder</span>
|
||||||
</span>
|
</span>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
<div class="navigation-inputs">
|
<div class="navigation-inputs">
|
||||||
@ -14,11 +14,11 @@
|
|||||||
<span class="navigation-item-action">
|
<span class="navigation-item-action">
|
||||||
{{#if navItem.last}}
|
{{#if navItem.last}}
|
||||||
<button type="button" class="add-navigation-link icon-add" {{action "addItem"}}>
|
<button type="button" class="add-navigation-link icon-add" {{action "addItem"}}>
|
||||||
<span class="hidden">Add</span>
|
<span class="sr-only">Add</span>
|
||||||
</button>
|
</button>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button type="button" class="navigation-delete icon-trash" {{action "deleteItem" navItem}}>
|
<button type="button" class="navigation-delete icon-trash" {{action "deleteItem" navItem}}>
|
||||||
<span class="hidden">Delete</span>
|
<span class="sr-only">Delete</span>
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="publish-bar-tags-icon">
|
<div class="publish-bar-tags-icon">
|
||||||
<label class="tag-label icon-tag" for="tags" title="Tags">
|
<label class="tag-label icon-tag" for="tags" title="Tags">
|
||||||
<span class="hidden">Tags</span>
|
<span class="sr-only">Tags</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="publish-bar-tags">
|
<div class="publish-bar-tags">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{{#link-to "posts" tagName="button" class="btn btn-default btn-back"}}Back{{/link-to}}
|
{{#link-to "posts" tagName="button" class="btn btn-default btn-back"}}Back{{/link-to}}
|
||||||
<h2 class="page-title">Preview</h2>
|
<h2 class="page-title">Preview</h2>
|
||||||
<button type="button" {{bind-attr class="model.featured:featured:unfeatured"}} title="Feature this post" {{action "toggleFeatured"}}>
|
<button type="button" {{bind-attr class="model.featured:featured:unfeatured"}} title="Feature this post" {{action "toggleFeatured"}}>
|
||||||
<span class="hidden">Star</span>
|
<span class="sr-only">Star</span>
|
||||||
</button>
|
</button>
|
||||||
<small class="post-published-by">
|
<small class="post-published-by">
|
||||||
<span class="status">{{#if isPublished}}Published{{else}}Written{{/if}}</span>
|
<span class="status">{{#if isPublished}}Published{{else}}Written{{/if}}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user