Skip to content

Commit

Permalink
Task/cooks 348 fix header line (#92)
Browse files Browse the repository at this point in the history
* Centered line on analytics main header

* Change wording for analytics chart, adjusted annotations

* Undid accidental changes to first plot title style

* Remove unused new style

* Fixed unneeded diff

* More diff and unused style removals

* Moved styles to sass

* Linting

* Change factor chart back to original name
  • Loading branch information
sophia-massie authored Mar 1, 2023
1 parent 2737f38 commit 1d81935
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,12 @@ function MainChart({ data, showInstructions }) {
)} County`
: 'Texas Statewide Data';
return (
<div className="analytics-types-plot-layout">
<div className="plot-details-section">
<div className="plot-details-section-selected">
<span className="plot-details-section-selected-value">
{plotDetailSectionTitle}
</span>
</div>
</div>
<div className={styles['main-chart']}>
<span className={styles['main-chart-title']}>
<span className={styles['main-chart-title-text']}>
{plotDetailSectionTitle}
</span>
</span>
<AnalyticsStateDistribution
geography={selection.geography}
selectedGeographicFeature={selection.selectedGeographicFeature}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,18 @@
.demographics-plot {
max-height: 55vh;
}
.main-chart {
min-height: 3vh;
margin: 0.5vh 1vw;
}
.main-chart-title {
display: flex;
border-bottom: 1px solid var(--color-gray-very-dark);
font-size: calc(var(--font-size-normal) * 1.3);
font-weight: var(--font-weight-heavy);
text-align: center;
}
.main-chart-title-text {
display: inline;
width: 100%;
}

0 comments on commit 1d81935

Please sign in to comment.