-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Health component, table cleanup, form cleanup (#158)
- Adds `EuiHealth` components for status checks. - Visual cleanup of checkboxes, switches and radios. - Form disabled states are much more consistant. - Page / title padding adjusted to be more compact. - Table spacing compressed visually. - Dark theme forms now have better contrast with their borders. - New app icons added to match Kibana's app directory.
- Loading branch information
Showing
39 changed files
with
450 additions
and
100 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
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
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,32 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
EuiHealth, | ||
EuiSpacer, | ||
} from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<div> | ||
<EuiHealth color="subdued"> | ||
Unknown | ||
</EuiHealth> | ||
|
||
<EuiSpacer /> | ||
|
||
<EuiHealth color="success"> | ||
Healthy | ||
</EuiHealth> | ||
|
||
<EuiSpacer /> | ||
|
||
<EuiHealth color="warning"> | ||
Warning | ||
</EuiHealth> | ||
|
||
<EuiSpacer /> | ||
|
||
<EuiHealth color="danger"> | ||
Failure | ||
</EuiHealth> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from 'react'; | ||
|
||
import { renderToHtml } from '../../services'; | ||
|
||
import { | ||
GuidePage, | ||
GuideSection, | ||
GuideSectionTypes, | ||
} from '../../components'; | ||
|
||
import { | ||
EuiCode, | ||
} from '../../../../src/components'; | ||
|
||
import Health from './health'; | ||
const healthSource = require('!!raw-loader!./health'); | ||
const healthHtml = renderToHtml(Health); | ||
|
||
export default props => ( | ||
<GuidePage title={props.route.name}> | ||
<GuideSection | ||
title="Health" | ||
source={[{ | ||
type: GuideSectionTypes.JS, | ||
code: healthSource, | ||
}, { | ||
type: GuideSectionTypes.HTML, | ||
code: healthHtml, | ||
}]} | ||
text={ | ||
<p> | ||
The <EuiCode>Health</EuiCode> component should be used when showing comparitive | ||
health of listed objects (like servers, nodes, indexes..etc). Because icons are | ||
vague and bulky and color alone does not work, we think color plus text provides | ||
a recognizable, lightweight combo that works in most situations. | ||
</p> | ||
} | ||
demo={<Health />} | ||
/> | ||
</GuidePage> | ||
); |
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
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
Oops, something went wrong.