mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Add InfoPanel. Use InfoPanel to present warning in Saved Object form.
This commit is contained in:
parent
6d0cc00f28
commit
bbb5c0364c
7 changed files with 47 additions and 5 deletions
|
@ -48,12 +48,14 @@
|
|||
|
||||
<!-- Intro -->
|
||||
<div class="kuiViewContentItem kuiVerticalRhythm">
|
||||
<p>
|
||||
<span class="kuiIcon kuiIcon--warning fa-bolt"></span>
|
||||
<strong>Proceed with caution!</strong>
|
||||
</p>
|
||||
<div class="kuiInfoPanel kuiInfoPanel--warning">
|
||||
<p>
|
||||
<span class="kuiIcon kuiIcon--warning fa-bolt"></span>
|
||||
<strong>Proceed with caution!</strong>
|
||||
</p>
|
||||
|
||||
<p>Modifying objects is for advanced users only. Object properties are not validated and invalid objects could cause errors, data loss, or worse. Unless someone with intimate knowledge of the code told you to be in here, you probably shouldn’t be.</p>
|
||||
<p>Modifying objects is for advanced users only. Object properties are not validated and invalid objects could cause errors, data loss, or worse. Unless someone with intimate knowledge of the code told you to be in here, you probably shouldn’t be.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kuiViewContentItem kuiVerticalRhythm">
|
||||
|
|
|
@ -98,6 +98,7 @@ body {
|
|||
@import "button/index";
|
||||
@import "form/index";
|
||||
@import "icon/index";
|
||||
@import "info_panel/index";
|
||||
@import "link/index";
|
||||
@import "local_nav/index";
|
||||
@import "micro_button/index";
|
||||
|
|
1
src/ui_framework/components/info_panel/_index.scss
Normal file
1
src/ui_framework/components/info_panel/_index.scss
Normal file
|
@ -0,0 +1 @@
|
|||
@import "info_panel";
|
8
src/ui_framework/components/info_panel/_info_panel.scss
Normal file
8
src/ui_framework/components/info_panel/_info_panel.scss
Normal file
|
@ -0,0 +1,8 @@
|
|||
.kuiInfoPanel {
|
||||
padding: 20px;
|
||||
line-height: $lineHeight;
|
||||
}
|
||||
|
||||
.kuiInfoPanel--warning {
|
||||
background-color: #FFF6E4;
|
||||
}
|
|
@ -10,6 +10,9 @@ import FormExample
|
|||
import IconExample
|
||||
from '../../views/icon/icon_example.jsx';
|
||||
|
||||
import InfoPanelExample
|
||||
from '../../views/info_panel/info_panel_example.jsx';
|
||||
|
||||
import LinkExample
|
||||
from '../../views/link/link_example.jsx';
|
||||
|
||||
|
@ -38,6 +41,9 @@ const components = [{
|
|||
}, {
|
||||
name: 'Icon',
|
||||
component: IconExample,
|
||||
}, {
|
||||
name: 'InfoPanel',
|
||||
component: InfoPanelExample,
|
||||
}, {
|
||||
name: 'Link',
|
||||
component: LinkExample,
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<div class="kuiInfoPanel kuiInfoPanel--warning">
|
||||
<p>
|
||||
<span class="kuiIcon kuiIcon--warning fa-bolt"></span>
|
||||
<strong>Proceed with caution!</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Here be dragons. Don’t wanna mess with no dragons.
|
||||
</p>
|
||||
</div>
|
|
@ -0,0 +1,14 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
createExample,
|
||||
} from '../../services';
|
||||
|
||||
export default createExample([{
|
||||
title: 'Warning',
|
||||
description: (
|
||||
<p>Use this InfoPanel to warn the user against decisions they might regret.</p>
|
||||
),
|
||||
html: require('./info_panel.html'),
|
||||
hasDarkTheme: false,
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue