Replace visually-hidden in favor of sr-only as discussed in #5664
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
|
||||
// Visually Hidden - used to remove an element from the view, whilst retaining accessibily for screen readers. More info available at https://a11yproject.com/posts/how-to-hide-content/
|
||||
// --------------------------------------------------
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute !important;
|
||||
height: 1px;
|
||||
width: 1px;
|
||||
overflow: hidden;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
}
|
||||
@@ -80,9 +80,6 @@
|
||||
|
||||
@import "forms/umb-validation-label.less";
|
||||
|
||||
// Umbraco Accessibility
|
||||
@import "accessibility/visually-hidden.less";
|
||||
|
||||
// Umbraco Components
|
||||
@import "components/application/umb-app-a11y.less";
|
||||
@import "components/application/umb-app-header.less";
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
<ul class="umb-app-header__actions">
|
||||
<li data-element="global-search" class="umb-app-header__action">
|
||||
<button class="umb-app-header__button btn-reset" hotkey="ctrl+space" ng-click="searchClick()" ng-mousedown="rememberFocus()" prevent-default style="font-size: 20px;">
|
||||
<span class="visually-hidden">Open/Close backoffice search</span>
|
||||
<span class="sr-only">Open/Close backoffice search</span>
|
||||
<i class="umb-app-header__action-icon icon-search"></i>
|
||||
</button>
|
||||
</li>
|
||||
<li data-element="global-help" class="umb-app-header__action">
|
||||
<button class="umb-app-header__button btn-reset" hotkey="ctrl+shift+h" ng-click="helpClick()" prevent-default>
|
||||
<span class="visually-hidden">Open/Close backoffice help window</span>
|
||||
<span class="sr-only">Open/Close backoffice help window</span>
|
||||
<i class="umb-app-header__action-icon icon-help-alt"></i>
|
||||
</button>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user