Skip to content

Commit

Permalink
Merge pull request #4098 from kyoto/monitoring-dashboards-dropdown-ti…
Browse files Browse the repository at this point in the history
…tles

Bug 1796441: Monitoring Dashboards: Capitalize dropdown titles for variables
  • Loading branch information
openshift-merge-robot committed Jan 30, 2020
2 parents 41331e2 + 5904166 commit fd3245a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions frontend/public/components/monitoring/_monitoring.scss
Expand Up @@ -6,6 +6,10 @@
width: 140px;
}

.monitoring-dashboards__dropdown-title {
text-transform: capitalize;
}

.monitoring-dashboards__dropdown-wrap {
margin-right: 20px;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/public/components/monitoring/dashboards/index.tsx
Expand Up @@ -43,7 +43,7 @@ const VariableDropdown: React.FC<VariableDropdownProps> = ({
title,
}) => (
<div className="form-group monitoring-dashboards__dropdown-wrap">
{title && <label>{title}</label>}
<label className="monitoring-dashboards__dropdown-title">{title}</label>
<Dropdown
buttonClassName={buttonClassName}
items={items}
Expand Down Expand Up @@ -391,7 +391,7 @@ type VariableDropdownProps = {
items: { [key: string]: string };
onChange: (v: string) => void;
selectedKey: string;
title?: string;
title: string;
};

type BoardProps = {
Expand Down

0 comments on commit fd3245a

Please sign in to comment.