-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(search): replace svg with inline svg (#137)
- Loading branch information
1 parent
8eb477f
commit 68dbac9
Showing
2 changed files
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<div data-search class="bx--search bx--search--sm" role="search"> | ||
<svg class="bx--search-magnifier"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--search--glyph"/> | ||
<svg class="bx--search-magnifier" width="16" height="16" viewBox="0 0 16 16" fill-rule="evenodd"> | ||
<path d="M6 2c2.2 0 4 1.8 4 4s-1.8 4-4 4-4-1.8-4-4 1.8-4 4-4zm0-2C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zM16 13.8L13.8 16l-3.6-3.6 2.2-2.2z"></path> | ||
<path d="M16 13.8L13.8 16l-3.6-3.6 2.2-2.2z"></path> | ||
</svg> | ||
<label id="search-input-label-1" class="bx--label" for="search__input-2">Search</label> | ||
<input class="bx--search-input" type="text" id="search__input-2" role="search" placeholder="Search" aria-labelledby="search-input-label-1"> | ||
<svg class="bx--search-close bx--search-close--hidden"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--close--glyph"/> | ||
<svg class="bx--search-close bx--search-close--hidden" width="16" height="16" viewBox="0 0 16 16" fill-rule="evenodd"> | ||
<path d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm3.5 10.1l-1.4 1.4L8 9.4l-2.1 2.1-1.4-1.4L6.6 8 4.5 5.9l1.4-1.4L8 6.6l2.1-2.1 1.4 1.4L9.4 8l2.1 2.1z"></path> | ||
</svg> | ||
</div> |