-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added help icon for questions (based on dc:description property). Mov…
…ed CSS file into a separate top-level folder, so that it can be copied into target projects. Bumped version to 0.0.8.
- Loading branch information
Showing
16 changed files
with
18,189 additions
and
18,428 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.checkbox label { | ||
font-weight: bold; | ||
} | ||
|
||
.help-icon-text-input { | ||
margin-top: 30px; | ||
} | ||
|
||
.help-icon-checkbox { | ||
margin-top: 12px; | ||
} |
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 @@ | ||
.checkbox label{font-weight:700}.help-icon-text-input{margin-top:30px}.help-icon-checkbox{margin-top:12px} |
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,23 @@ | ||
'use strict'; | ||
|
||
import React from 'react'; | ||
import {Glyphicon, OverlayTrigger, Tooltip} from 'react-bootstrap'; | ||
|
||
const HelpIcon = (props) => { | ||
var tooltip = <Tooltip id='help-tooltip'>{props.text}</Tooltip>; | ||
return <OverlayTrigger placement='right' overlay={tooltip}> | ||
<Glyphicon glyph={props.glyph ? props.glyph : 'question-sign'} className={props.iconClass}/> | ||
</OverlayTrigger>; | ||
}; | ||
|
||
HelpIcon.propTypes = { | ||
text: React.PropTypes.string.isRequired, | ||
glyph: React.PropTypes.string, | ||
iconClass: React.PropTypes.string | ||
}; | ||
|
||
HelpIcon.defaultProps = { | ||
iconClass: '' | ||
}; | ||
|
||
export default HelpIcon; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.