Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !25197
An error occurred while fetching the assigned milestone of the selected merge_request.

Update `.sr-only` mixin and utility

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mark Otto requested to merge sr-only-update into v4-dev 7 years ago
  • Overview 0
  • Commits 4
  • Pipelines 0
  • Changes 2

Undoes part of #22154, which originally fixed #20732 (closed), given #24906 (closed) indicates Chrome has some serious perf issues with this property.

/cc @patrickhlauke @bbthorntz and @hugogiraudel for original code

Fixes #24906 (closed).

Compare
  • v4-dev (base)

and
  • latest version
    347e082f
    4 commits, 2 years ago

2 files
+ 2
- 4

    Preferences

    File browser
    Compare changes
docs/4.0/‎utilities‎
screenre‎aders.md‎ +2 -2
scss/‎mixins‎
_screen-r‎eader.scss‎ +0 -2
docs/4.0/utilities/screenreaders.md
+ 2
- 2
  • View file @ 347e082f

  • Edit in single-file editor

  • Open in Web IDE


@@ -12,9 +12,9 @@ Hide an element to all devices **except screen readers** with `.sr-only`. Combin
Necessary for following [accessibility best practices]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/#accessibility).
{%- endcomment -%}
{% highlight html %}
{% example html %}
<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
{% endhighlight %}
{% endexample %}
{% highlight scss %}
// Usage as a mixin
scss/mixins/_screen-reader.scss
+ 0
- 2
  • View file @ 347e082f

  • Edit in single-file editor

  • Open in Web IDE


@@ -11,7 +11,6 @@
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
clip-path: inset(50%);
border: 0;
}
@@ -30,6 +29,5 @@
overflow: visible;
clip: auto;
white-space: normal;
clip-path: none;
}
}
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: sr-only-update

Menu

Explore Projects Groups Snippets