diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2019-02-15 17:52:52 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-03-06 11:30:42 +0100 |
commit | 79a32b89b9d41df6cb8f1f96980d2591a5ecb192 (patch) | |
tree | 3b800b0d0f827ab655dbc3cf356b5058b490bdf8 /server/sonar-web/src/main/js/components/common | |
parent | 769d66fa99847e63cf5536f128b53a37e7a5a430 (diff) | |
download | sonarqube-79a32b89b9d41df6cb8f1f96980d2591a5ecb192.tar.gz sonarqube-79a32b89b9d41df6cb8f1f96980d2591a5ecb192.zip |
SONARCLOUD-380 Rework modal styling of SC and SQ
* Update modal-fields
* Update form-fields styling
* Update modal-fields usage in extensions
* Clean css
Diffstat (limited to 'server/sonar-web/src/main/js/components/common')
-rw-r--r-- | server/sonar-web/src/main/js/components/common/MarkdownTips.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx b/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx index 1007498f19b..2c99b2f74a4 100644 --- a/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx +++ b/server/sonar-web/src/main/js/components/common/MarkdownTips.tsx @@ -18,10 +18,15 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; +import * as classNames from 'classnames'; import { getMarkdownHelpUrl } from '../../helpers/urls'; import { translate } from '../../helpers/l10n'; -export default class MarkdownTips extends React.PureComponent { +interface Props { + className?: string; +} + +export default class MarkdownTips extends React.PureComponent<Props> { handleClick(evt: React.SyntheticEvent<HTMLAnchorElement>) { evt.preventDefault(); window.open(getMarkdownHelpUrl(), 'Markdown', 'height=300,width=600,scrollbars=1,resizable=1'); @@ -29,7 +34,7 @@ export default class MarkdownTips extends React.PureComponent { render() { return ( - <div className="markdown-tips"> + <div className={classNames('markdown-tips', this.props.className)}> <a className="little-spacer-right" href="#" onClick={this.handleClick}> {translate('markdown.helplink')} </a> |