Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image replacement needs more documentation and examples (#22613) #22811

Merged
merged 2 commits into from
Aug 11, 2017

Conversation

dillonchanis
Copy link
Contributor

@dillonchanis dillonchanis commented Jun 13, 2017

Added an extra description on why you would utilize the .text-hide class along with an example.

Fixes #22613

@@ -18,3 +18,18 @@ Utilize the `.text-hide` class or mixin to help replace an element's text conten
@include text-hide;
}
{% endhighlight %}

The `.text-hide` class is useful for when you want the benefits heading tags like accessibility and SEO, but want to utilize your brand's logo image instead of text.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small edit for this:

Use the `.text-hide` class to maintain the accessibility and SEO benefits of heading tags, but want to utilize a `background-image` instead of text.

.logo {
background-image: url('/assets/brand/bootstrap-solid.svg');
}
{% endhighlight %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd pick one example here, not a mix of these two as it could confuse beginners. Delete L27-34 maybe?

@mdo mdo mentioned this pull request Aug 11, 2017
@mdo mdo merged commit 9706ce7 into twbs:v4-dev Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants