-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(notifications): replace svg with inline-svg (#129)
- Loading branch information
1 parent
3924de3
commit 4423a93
Showing
2 changed files
with
32 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,71 @@ | ||
<!--replace xlink:href with correct svg icon API endpoint--> | ||
<div data-notification class="bx--inline-notification bx--inline-notification--error" role="alert"> | ||
<div class="bx--inline-notification__details"> | ||
<svg class="bx--inline-notification__icon" aria-label="close"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--error--glyph"></use> | ||
</svg> | ||
<svg class="bx--inline-notification__icon" 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-8zM5.1 13.3L3.5 12 11 2.6l1.5 1.2-7.4 9.5z"></path> | ||
</svg> | ||
<div class="bx--inline-notification__text-wrapper"> | ||
<p class="bx--inline-notification__title">Error Notification:</h3> | ||
<p class="bx--inline-notification__subtitle">Here is a clear explaination of the warning</p> | ||
<p class="bx--inline-notification__subtitle">Here is a clear explaination of the warning</p> | ||
</div> | ||
</div> | ||
<button data-notification-btn class="bx--inline-notification__close-button" type="button"> | ||
<svg class="bx--inline-notification__close-icon" aria-label="close"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--close"></use> | ||
<svg class="bx--inline-notification__close-icon" aria-label="close" width="10" height="10" viewBox="0 0 10 10" fill-rule="evenodd"> | ||
<path d="M9.8 8.6L8.4 10 5 6.4 1.4 10 0 8.6 3.6 5 .1 1.4 1.5 0 5 3.6 8.6 0 10 1.4 6.4 5z"></path> | ||
</svg> | ||
</button> | ||
</div> | ||
|
||
<!--replace xlink:href with correct svg icon API endpoint--> | ||
<div data-notification class="bx--inline-notification bx--inline-notification--info" role="alert"> | ||
<div class="bx--inline-notification__details"> | ||
<svg class="bx--inline-notification__icon" aria-label="close"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--info--glyph"></use> | ||
</svg> | ||
<svg class="bx--inline-notification__icon" 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-8zm0 4c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zm2 8H6v-1h1V8H6V7h3v4h1v1z"></path> | ||
</svg> | ||
<div class="bx--inline-notification__text-wrapper"> | ||
<p class="bx--inline-notification__title">Info Notification:</h3> | ||
<p class="bx--inline-notification__subtitle">Here is a clear explaination of the warning</p> | ||
<p class="bx--inline-notification__subtitle">Here is a clear explaination of the warning</p> | ||
</div> | ||
</div> | ||
<button data-notification-btn class="bx--inline-notification__close-button" type="button"> | ||
<svg class="bx--inline-notification__close-icon" aria-label="close"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--close"></use> | ||
<svg class="bx--inline-notification__close-icon" aria-label="close" width="10" height="10" viewBox="0 0 10 10" fill-rule="evenodd"> | ||
<path d="M9.8 8.6L8.4 10 5 6.4 1.4 10 0 8.6 3.6 5 .1 1.4 1.5 0 5 3.6 8.6 0 10 1.4 6.4 5z"></path> | ||
</svg> | ||
</button> | ||
</div> | ||
|
||
<!--replace xlink:href with correct svg icon API endpoint--> | ||
<div data-notification class="bx--inline-notification bx--inline-notification--success" role="alert"> | ||
<div class="bx--inline-notification__details"> | ||
<svg class="bx--inline-notification__icon" aria-label="close"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--checkmark--glyph"></use> | ||
<svg class="bx--inline-notification__icon" 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-8zM6.7 11.5L3.4 8.1l1.4-1.4 1.9 1.9 4.1-4.1 1.4 1.4-5.5 5.6z"></path> | ||
</svg> | ||
<div class="bx--inline-notification__text-wrapper"> | ||
<p class="bx--inline-notification__title">Success Notification:</p> | ||
<p class="bx--inline-notification__subtitle">Here is a clear explaination. It drops to next line if the content is long enough</p> | ||
</div> | ||
</div> | ||
<button data-notification-btn class="bx--inline-notification__close-button" type="button"> | ||
<svg class="bx--inline-notification__close-icon" aria-label="close"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--close"></use> | ||
<svg class="bx--inline-notification__close-icon" aria-label="close" width="10" height="10" viewBox="0 0 10 10" fill-rule="evenodd"> | ||
<path d="M9.8 8.6L8.4 10 5 6.4 1.4 10 0 8.6 3.6 5 .1 1.4 1.5 0 5 3.6 8.6 0 10 1.4 6.4 5z"></path> | ||
</svg> | ||
</button> | ||
</div> | ||
|
||
<!--replace xlink:href with correct svg icon API endpoint--> | ||
<div data-notification class="bx--inline-notification bx--inline-notification--warning" role="alert"> | ||
<div class="bx--inline-notification__details"> | ||
<svg class="bx--inline-notification__icon" aria-label="close"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--warning--glyph"></use> | ||
<svg class="bx--inline-notification__icon" width="16" height="16" viewBox="0 0 16 16" fill-rule="evenodd"> | ||
<path d="M8 1L0 15h16L8 1zm-.8 5h1.5v1.4L8.3 11h-.8l-.4-3.6V6h.1zm.8 8c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z"></path> | ||
</svg> | ||
<div class="bx--inline-notification__text-wrapper"> | ||
<p class="bx--inline-notification__title">Warning Notification:</p> | ||
<p class="bx--inline-notification__subtitle">Here is a clear explaination. It drops to next line if the content is long enough</p> | ||
</div> | ||
</div> | ||
<button data-notification-btn class="bx--inline-notification__close-button" type="button"> | ||
<svg class="bx--inline-notification__close-icon" aria-label="close"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--close"></use> | ||
<svg class="bx--inline-notification__close-icon" aria-label="close" width="10" height="10" viewBox="0 0 10 10" fill-rule="evenodd"> | ||
<path d="M9.8 8.6L8.4 10 5 6.4 1.4 10 0 8.6 3.6 5 .1 1.4 1.5 0 5 3.6 8.6 0 10 1.4 6.4 5z"></path> | ||
</svg> | ||
</button> | ||
</div> |
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