Skip to content

Commit

Permalink
[Feature] Use color palette
Browse files Browse the repository at this point in the history
  • Loading branch information
levinmr committed Nov 19, 2024
1 parent 6f2bbed commit dd6658e
Show file tree
Hide file tree
Showing 29 changed files with 395 additions and 343 deletions.
9 changes: 6 additions & 3 deletions _includes/analytics_definitions.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1 class="analytics-definitions__header margin-0 padding-bottom-1">
>
<button
type="button"
class="usa-accordion__button white bg-dark-blue"
class="usa-accordion__button white bg-palette-color-2"
aria-expanded="true"
aria-controls="report-descriptions-content"
>
Expand Down Expand Up @@ -179,7 +179,10 @@ <h3 id="report_realtime_top_pages" class="usa-accordion__heading">
class="usa-accordion__content usa-prose"
>
<ul>
<li>Metric: <a href="#metric_screen_page_views">screen page views</a></li>
<li>
Metric:
<a href="#metric_screen_page_views">screen page views</a>
</li>
<li>
Dimensions: <a href="#dimension_host_name">hostname</a>, full
page URL, <a href="#dimension_page_title">page title</a>
Expand Down Expand Up @@ -330,7 +333,7 @@ <h3 id="report_realtime_top_pages" class="usa-accordion__heading">
>
<button
type="button"
class="usa-accordion__button white bg-dark-blue"
class="usa-accordion__button white bg-palette-color-2"
aria-expanded="true"
aria-controls="data-definitions-content"
>
Expand Down
2 changes: 1 addition & 1 deletion _includes/data_download.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>Download the data</h1>

<p>
<a
class="analytics-data__historical-data-link light-blue-two"
class="analytics-data__historical-data-link palette-color-4"
href="/historical-data-download"
>
<em
Expand Down
5 changes: 4 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<header id="analytics-header" class="grid-row white bg-dark-blue padding-3">
<header
id="analytics-header"
class="grid-row white bg-palette-color-1 padding-3"
>
<h1 class="margin-top-0 margin-x-0 margin-bottom-1">
<img
src="{{ site.baseurl }}/images/analytics.svg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
48.5%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 49%;"
/>
</div>
Expand All @@ -52,7 +52,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
35.7%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 36%;"
/>
</div>
Expand All @@ -70,7 +70,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
8.8%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 9%;"
/>
</div>
Expand All @@ -88,7 +88,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -106,7 +106,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -124,7 +124,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.4%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -142,7 +142,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -160,7 +160,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.2%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -178,7 +178,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -196,7 +196,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.4%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand Down Expand Up @@ -227,7 +227,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
48.7%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 49%;"
/>
</div>
Expand All @@ -245,7 +245,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
35.8%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 36%;"
/>
</div>
Expand All @@ -263,7 +263,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
8.8%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 9%;"
/>
</div>
Expand All @@ -281,7 +281,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -299,7 +299,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -317,7 +317,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.4%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -335,7 +335,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -353,7 +353,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.2%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -371,7 +371,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
48.7%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 49%;"
/>
</div>
Expand All @@ -49,7 +49,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
35.8%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 36%;"
/>
</div>
Expand All @@ -67,7 +67,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
8.8%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 9%;"
/>
</div>
Expand All @@ -85,7 +85,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -103,7 +103,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -121,7 +121,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
1.4%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -139,7 +139,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -157,7 +157,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
0.2%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -175,7 +175,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
0.1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -193,7 +193,7 @@ exports[`BrowsersChart when data is loaded renders a component with data loaded
0.1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`DevicesChart when data is loaded renders a component with data loaded 1
54.4%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 54%;"
/>
</div>
Expand All @@ -49,7 +49,7 @@ exports[`DevicesChart when data is loaded renders a component with data loaded 1
44%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 44%;"
/>
</div>
Expand All @@ -67,7 +67,7 @@ exports[`DevicesChart when data is loaded renders a component with data loaded 1
1.3%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -85,7 +85,7 @@ exports[`DevicesChart when data is loaded renders a component with data loaded 1
0.2%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -103,7 +103,7 @@ exports[`DevicesChart when data is loaded renders a component with data loaded 1
0.1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand Down
Loading

0 comments on commit dd6658e

Please sign in to comment.