forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing icons in Visualize listing. (elastic#11243)
* Fix StatusText component so that it supports image icons. * Fix missing icons in Visualize listing. Support both icons and images.
- Loading branch information
Showing
10 changed files
with
104 additions
and
18 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 +1,3 @@ | ||
$statusTextIconSize: 1.15em; | ||
|
||
@import "status_text"; |
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
37 changes: 37 additions & 0 deletions
37
ui_framework/doc_site/src/views/status_text/status_text.html
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<p class="kuiText"> | ||
<span class="kuiStatusText"> | ||
<span class="kuiStatusText__icon kuiIcon fa-area-chart"></span> | ||
Font icon | ||
</span> | ||
</p> | ||
|
||
<p class="kuiText"> | ||
<span class="kuiStatusText"> | ||
<img | ||
class="kuiStatusText__icon" | ||
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjBweCI | ||
gaGVpZ2h0PSI0NnB4IiB2aWV3Qm94PSIwIDAgNjAgNDYiIHZlcnNpb249I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wIDIwLjMwNzY5MjMgNSAzNC44NDYxNTM4IDIwIj48L3BvbHlnb24+CiAgICAg | ||
ICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJ4eS1heGlzIiBmaWxsLXJ1bGU9Im5vbnp | ||
lcm8iIHBvaW50cz0iNCAwIDAgMCAwIDQ1LjAxMTYyNjMgNjAuMDAwMDAxMSA0NS4wMTE2MjYzID | ||
YwLjAwMDAwMTEgNDEuMDExNjI2MyA0IDQxLjAxMTYyNjMiPjwvcG9seWdvbj4KICAgICAgICAgI | ||
CAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAg | ||
ICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==" | ||
/> | ||
Image icon | ||
</span> | ||
</p> | ||
|
10 changes: 6 additions & 4 deletions
10
ui_framework/doc_site/src/views/status_text/status_text_error.html
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,4 +1,6 @@ | ||
<span class="kuiStatusText kuiStatusText--error"> | ||
<span class="kuiStatusText__icon kuiIcon fa-warning"></span> | ||
Something’s gone terribly wrong | ||
</span> | ||
<p class="kuiText"> | ||
<span class="kuiStatusText kuiStatusText--error"> | ||
<span class="kuiStatusText__icon kuiIcon fa-warning"></span> | ||
Something’s gone terribly wrong | ||
</span> | ||
</p> |
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
10 changes: 6 additions & 4 deletions
10
ui_framework/doc_site/src/views/status_text/status_text_info.html
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,4 +1,6 @@ | ||
<span class="kuiStatusText kuiStatusText--info"> | ||
<span class="kuiStatusText__icon kuiIcon fa-info"></span> | ||
Just to let you know | ||
</span> | ||
<p class="kuiText"> | ||
<span class="kuiStatusText kuiStatusText--info"> | ||
<span class="kuiStatusText__icon kuiIcon fa-info"></span> | ||
Just to let you know | ||
</span> | ||
</p> |
10 changes: 6 additions & 4 deletions
10
ui_framework/doc_site/src/views/status_text/status_text_success.html
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,4 +1,6 @@ | ||
<span class="kuiStatusText kuiStatusText--success"> | ||
<span class="kuiStatusText__icon kuiIcon fa-check"></span> | ||
Eveything is OK | ||
</span> | ||
<p class="kuiText"> | ||
<span class="kuiStatusText kuiStatusText--success"> | ||
<span class="kuiStatusText__icon kuiIcon fa-check"></span> | ||
Eveything is OK | ||
</span> | ||
</p> |
10 changes: 6 additions & 4 deletions
10
ui_framework/doc_site/src/views/status_text/status_text_warning.html
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,4 +1,6 @@ | ||
<span class="kuiStatusText kuiStatusText--warning"> | ||
<span class="kuiStatusText__icon kuiIcon fa-bolt"></span> | ||
Careful! | ||
</span> | ||
<p class="kuiText"> | ||
<span class="kuiStatusText kuiStatusText--warning"> | ||
<span class="kuiStatusText__icon kuiIcon fa-bolt"></span> | ||
Careful! | ||
</span> | ||
</p> |