- {this.isMultiMode ? (
- <>
-
- {numSelectedEntities > 0
- ? `${numSelectedEntities} selected`
- : "Empty selection"}
-
-
- >
- ) : (
-
- {selectedEntityNames.length > 0 ? (
- <>
- Current selection:
-
- {selectedEntityNames[0]}
-
- >
- ) : (
- "Empty selection"
- )}
-
- )}
+
+ {numSelectedEntities > 0
+ ? `${numSelectedEntities} selected`
+ : "Empty selection"}
+
+
)
}
@@ -948,7 +954,11 @@ export class EntitySelector extends React.Component<{
render(): JSX.Element {
return (
e.currentTarget.classList.add("hovered")}
+ onMouseLeave={(e) => e.currentTarget.classList.remove("hovered")}
// make the whole row clickable
onClickCapture={(e) => {
e.stopPropagation()
@@ -1032,6 +1047,39 @@ function SelectableEntity({
)
}
+function FlippedListItem({
+ flipId,
+ mostRecentlySelectedFlipId,
+ index = 0,
+ children,
+}: {
+ flipId: string
+ mostRecentlySelectedFlipId?: string
+ index?: number
+ children: React.ReactNode
+}) {
+ return (
+
+
+ {children}
+
+
+ )
+}
+
function makeColumnLabel(column: CoreColumn): string {
return column.titlePublicOrDisplayName.title
}
diff --git a/packages/@ourworldindata/grapher/src/modal/DownloadModal.scss b/packages/@ourworldindata/grapher/src/modal/DownloadModal.scss
index 257b8793194..45caa152565 100644
--- a/packages/@ourworldindata/grapher/src/modal/DownloadModal.scss
+++ b/packages/@ourworldindata/grapher/src/modal/DownloadModal.scss
@@ -96,12 +96,12 @@
}
.title {
- font-size: 1rem;
+ font-size: 16px;
}
p {
margin: 8px 0 0;
- font-size: 0.875rem;
+ font-size: 14px;
}
a {
@@ -125,6 +125,18 @@
}
}
+&.GrapherComponentSmall .download-modal-content {
+ .grouped-menu-item h4,
+ .grouped-menu-callout h4 {
+ font-size: 14px;
+ }
+
+ .grouped-menu-item p,
+ .grouped-menu-callout p {
+ font-size: 13px;
+ }
+}
+
&.GrapherComponentNarrow .download-modal-content {
.grouped-menu-icon img {
display: none;
diff --git a/packages/@ourworldindata/grapher/src/modal/SourcesDescriptions.scss b/packages/@ourworldindata/grapher/src/modal/SourcesDescriptions.scss
index 63384e330d1..119ac55551d 100644
--- a/packages/@ourworldindata/grapher/src/modal/SourcesDescriptions.scss
+++ b/packages/@ourworldindata/grapher/src/modal/SourcesDescriptions.scss
@@ -7,7 +7,7 @@
padding: 24px;
&__title {
- @include h2-semibold;
+ @include grapher_h2-semibold;
color: $dark-text;
margin-top: 0;
margin-bottom: 16px;
@@ -15,14 +15,17 @@
&__content,
&__content ul {
- @include body-2-regular;
- font-size: 0.875rem;
+ font-family: $sans-serif-font-stack;
+ font-size: 14px;
font-weight: 500;
+ line-height: 1.5;
+ letter-spacing: 0.01em;
color: $dark-text;
margin: 0;
}
&__content ul {
+ padding: 0;
margin-left: 1em;
li {
margin-bottom: 1em;
diff --git a/packages/@ourworldindata/grapher/src/modal/SourcesKeyDataTable.scss b/packages/@ourworldindata/grapher/src/modal/SourcesKeyDataTable.scss
index 97e1b09bd22..9c077d0cb12 100644
--- a/packages/@ourworldindata/grapher/src/modal/SourcesKeyDataTable.scss
+++ b/packages/@ourworldindata/grapher/src/modal/SourcesKeyDataTable.scss
@@ -6,7 +6,7 @@
gap: 16px;
.key-data {
- @include label-2-medium;
+ @include grapher_label-2-medium;
&__title {
margin-bottom: 4px;
diff --git a/packages/@ourworldindata/grapher/src/modal/SourcesModal.scss b/packages/@ourworldindata/grapher/src/modal/SourcesModal.scss
index 98d08a2b303..55129c9e41c 100644
--- a/packages/@ourworldindata/grapher/src/modal/SourcesModal.scss
+++ b/packages/@ourworldindata/grapher/src/modal/SourcesModal.scss
@@ -16,17 +16,21 @@
}
.scrollable {
- max-width: $max-content-width;
- margin: 0 auto;
- width: 100%;
-
flex: 1 1 auto;
overflow-y: auto;
+
padding: 0 var(--modal-padding) var(--modal-padding);
&--pad-top {
padding-top: var(--modal-padding);
}
+ }
+
+ .scrollable .centered {
+ max-width: $max-content-width;
+ margin: 0 auto;
+ width: 100%;
+ height: 100%;
// needed for the loading indicator
position: relative;
@@ -43,28 +47,31 @@
.note-multiple-indicators {
margin-top: 0;
color: $light-text;
- font-size: 0.875rem;
+ font-size: 14px;
font-style: italic;
font-weight: 500;
}
+ .Tabs__tab {
+ font-size: $tab-font-size;
+ padding: 8px $tab-padding;
+ margin: 0 $tab-gap 8px 0;
+ }
+
.source {
color: $light-text;
+ padding-bottom: var(--modal-padding);
h2 {
- @include h1-semibold;
+ @include grapher_h1-semibold;
margin-top: 0;
margin-bottom: 8px;
margin-right: 8px;
color: $dark-text;
-
- @include sm-up {
- font-size: 1.5rem;
- }
}
.description-below-title {
- @include body-3-medium;
+ @include grapher_body-3-medium;
color: $dark-text;
p {
@@ -85,7 +92,7 @@
.title-fragments {
color: $light-text;
- font-size: 1.25rem;
+ font-size: 20px;
}
a {
@@ -102,7 +109,7 @@
}
.heading {
- @include h2-semibold;
+ @include grapher_h2-semibold;
margin-top: 32px;
margin-bottom: 16px;
color: $dark-text;
@@ -127,6 +134,11 @@
}
}
+ .ExpandableToggle__title,
+ .NonExpandable__title {
+ @include grapher_h4-semibold;
+ }
+
&--single .NonExpandable {
border: none;
padding: 0;
@@ -171,16 +183,15 @@
h6 {
color: $dark-text;
font-family: $sans-serif-font-stack;
- font-size: 1em !important;
+ font-size: 16px !important;
margin-top: 14px;
margin-bottom: 6px;
}
- }
- .Tabs__tab {
- font-size: $tab-font-size;
- padding: 8px $tab-padding;
- margin-right: $tab-gap;
+ p,
+ li {
+ font-size: 14px;
+ }
}
.data-citation__item:not(:first-of-type) {
@@ -189,7 +200,7 @@
.citation__paragraph {
color: $light-text;
- font-size: 0.875rem;
+ font-size: 14px;
}
.citation__type {
@@ -197,11 +208,16 @@
line-height: 1.5;
color: $dark-text;
font-weight: 500;
- font-size: 0.875rem;
+ font-size: 14px;
+ }
+
+ .indicator-processing p {
+ font-size: 14px;
}
.indicator-processing .indicator-processing__link {
@include body-3-medium;
+ font-size: 14px;
display: inline-block;
height: auto;
padding: 0;
@@ -220,20 +236,17 @@
&.GrapherComponentSmall .sources-modal-content {
.source {
- --text-small: 0.8125rem;
+ --text-small: 13px;
--indicator-processing-content-size: var(--text-small);
--data-processing-content-size: var(--text-small);
- --expandable-toggle-title-size: 0.875rem;
+ --expandable-toggle-title-size: 14px;
--expandable-toggle-content-size: var(--text-small);
- --non-expandable-title-size: 0.875rem;
+ --non-expandable-title-size: 14px;
--non-expandable-content-size: var(--text-small);
h2 {
- font-size: 1.25rem;
- @include sm-up {
- font-size: 1.25rem;
- }
+ font-size: 20px;
}
h2 + p {
@@ -241,7 +254,7 @@
}
.heading {
- font-size: 1.125rem;
+ font-size: 18px;
}
.indicator-descriptions .key-info {
diff --git a/packages/@ourworldindata/grapher/src/modal/SourcesModal.tsx b/packages/@ourworldindata/grapher/src/modal/SourcesModal.tsx
index d4c034cff3b..72f763b9efe 100644
--- a/packages/@ourworldindata/grapher/src/modal/SourcesModal.tsx
+++ b/packages/@ourworldindata/grapher/src/modal/SourcesModal.tsx
@@ -278,11 +278,13 @@ export class SourcesModal extends React.Component<
"scrollable--pad-top": !this.showStickyHeader,
})}
>
- {this.manager.isReady ? (
- this.renderModalContent()
- ) : (
-
- )}
+
+ {this.manager.isReady ? (
+ this.renderModalContent()
+ ) : (
+
+ )}
+
diff --git a/packages/@ourworldindata/grapher/src/slideInDrawer/SlideInDrawer.scss b/packages/@ourworldindata/grapher/src/slideInDrawer/SlideInDrawer.scss
index 7de5ab99a67..a1a860839a2 100644
--- a/packages/@ourworldindata/grapher/src/slideInDrawer/SlideInDrawer.scss
+++ b/packages/@ourworldindata/grapher/src/slideInDrawer/SlideInDrawer.scss
@@ -15,7 +15,7 @@
left: 0;
right: 0;
bottom: 0;
- background: rgba(0, 0, 0, 0.2);
+ background: rgba(0, 0, 0, 0.1);
z-index: $zindex-controls-backdrop;
}
}
diff --git a/packages/@ourworldindata/grapher/src/tabs/Tabs.scss b/packages/@ourworldindata/grapher/src/tabs/Tabs.scss
index a97ffa470a7..b4deb7f3f7e 100644
--- a/packages/@ourworldindata/grapher/src/tabs/Tabs.scss
+++ b/packages/@ourworldindata/grapher/src/tabs/Tabs.scss
@@ -13,14 +13,13 @@
}
&__tab {
+ @include grapher_label-2-medium;
+ display: inline-block;
margin: 0 8px 8px 0;
padding: 8px 16px;
border: 1px solid $blue-10;
background: #fff;
color: $light-text;
- font-size: 0.8125rem;
- font-weight: 500;
- letter-spacing: 0.01em;
white-space: nowrap;
&:hover {
diff --git a/site/gdocs/components/Chart.tsx b/site/gdocs/components/Chart.tsx
index bb10e3fc494..fd3eb21e9f5 100644
--- a/site/gdocs/components/Chart.tsx
+++ b/site/gdocs/components/Chart.tsx
@@ -36,6 +36,8 @@ export default function Chart({
const { linkedChart } = useLinkedChart(d.url)
if (!linkedChart) return null
+ console.log(linkedChart.resolvedUrl)
+
const url = Url.fromURL(d.url)
const resolvedUrl = linkedChart.resolvedUrl
const isExplorer = url.isExplorer