@flourish/info-popup
Advanced tools
Comparing version 7.0.0 to 7.0.1
{ | ||
"name": "@flourish/info-popup", | ||
"type": "module", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "description": "Popup with data insertion", |
@@ -0,1 +1,4 @@ | ||
# 7.0.1 | ||
* Change heading levels to be more semantically accurate | ||
# 7.0.0 | ||
@@ -2,0 +5,0 @@ * Change package `type` to `module` |
@@ -36,3 +36,3 @@ var DEFAULTS = { | ||
panel_custom_main: "Custom panel main content", | ||
panel_side_default_content: "<h1>Tap or click to explore</h1>", | ||
panel_side_default_content: "<h3>Tap or click to explore</h3>", | ||
panel_side_fixed: false, | ||
@@ -39,0 +39,0 @@ |
@@ -134,4 +134,4 @@ import { create } from "d3-selection"; | ||
html += "<header>"; | ||
if (formatted_content.title) html += `<h1>${formatted_content.title}</h1>`; | ||
if (formatted_content.subtitle) html += `<h2>${formatted_content.subtitle}</h2>`; | ||
if (formatted_content.title) html += `<h3>${formatted_content.title}</h3>`; | ||
if (formatted_content.subtitle) html += `<h4>${formatted_content.subtitle}</h4>`; | ||
html += "</header>"; | ||
@@ -138,0 +138,0 @@ } |
@@ -83,13 +83,13 @@ import { color } from "d3-color"; | ||
styles.select(".flourish-popup h1, .flourish-panel h1") | ||
styles.select(".flourish-popup h3, .flourish-panel h3") | ||
.style("font-size", "1em") | ||
.style("margin", "0"); | ||
styles.select(".flourish-popup h1, .flourish-popup h2, .flourish-popup ul li") | ||
styles.select(".flourish-popup h3, .flourish-popup h4, .flourish-popup ul li") | ||
.style("text-align", instance._state.popup_align); | ||
styles.select(".flourish-panel h1, .flourish-panel h2, .flourish-panel ul li") | ||
styles.select(".flourish-panel h3, .flourish-panel h4, .flourish-panel ul li") | ||
.style("text-align", instance._state.panel_align); | ||
styles.select(".flourish-popup h2, .flourish-panel h2") | ||
styles.select(".flourish-popup h4, .flourish-panel h4") | ||
.style("font-size", "1em") | ||
@@ -100,3 +100,3 @@ .style("margin", header_block ? "0" : "0 0 0.25em") | ||
styles.select(".flourish-popup h2:empty, .flourish-panel h2:empty, .flourish-popup h1:empty, .flourish-panel h1:empty, .flourish-popup p:empty, .flourish-panel p:empty") | ||
styles.select(".flourish-popup h4:empty, .flourish-panel h4:empty, .flourish-popup h3:empty, .flourish-panel h3:empty, .flourish-popup p:empty, .flourish-panel p:empty") | ||
.style("display", "none"); | ||
@@ -219,2 +219,1 @@ | ||
} | ||
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
434250
18
7370
1