* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
+import classNames from 'classnames';
import ProfileInheritanceBox from './ProfileInheritanceBox';
import ChangeParentView from '../views/ChangeParentView';
import { ProfileType } from '../propTypes';
}
render () {
+ const highlightCurrent = !this.state.loading &&
+ (this.state.ancestors.length > 0 || this.state.children.length > 0);
+ const currentClassName = classNames('js-inheritance-current', {
+ selected: highlightCurrent
+ });
+
return (
<div className="quality-profile-inheritance">
<header className="big-spacer-bottom clearfix">
profile={this.state.profile}
depth={this.state.ancestors.length}
displayLink={false}
- className="js-inheritance-current"/>
+ className={currentClassName}/>
{this.state.children.map(child => (
<ProfileInheritanceBox
.even.selected a,
.even.selected span:not(.rating),
.odd.selected span:not(.rating) {
- background-color: @lightBlue;
+ background-color: #d9edf7;
color: @baseFontColor;
}
}
table.data.zebra > tbody > tr.selected {
- background-color: @lightBlue !important;
+ background-color: #d9edf7 !important;
}
table.data.condensed > tbody > tr > td {