Skip to content

Commit

Permalink
Fix scaladoc graph highlight background color in dark mode
Browse files Browse the repository at this point in the history
Also fix two typos
  • Loading branch information
Jentsch committed Oct 19, 2024
1 parent bcbdb5e commit 654bc6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scaladoc/resources/dotty_res/scripts/ux.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const attrsToCopy = [

/**
* @typedef {Object} SavedPageState
* @property {Strign} mainDiv
* @property {String} mainDiv
* @property {String} leftColumn
* @property {String} title
* @property {Record<string, string>} attrs
Expand Down Expand Up @@ -322,7 +322,7 @@ function attachAllListeners() {

if (location.hash) {
var target = location.hash.substring(1);
// setting the 'expand' class on the top-level container causes undesireable styles
// setting the 'expand' class on the top-level container causes undesirable styles
// to apply to the top-level docs, so we avoid this logic for that element.
if (target != "container") {
var selected = document.getElementById(location.hash.substring(1));
Expand Down Expand Up @@ -568,7 +568,7 @@ function showGraph() {
.attr("offset", "30%");
radialGradient
.append("stop")
.attr("stop-color", "var(--background-default)")
.attr("stop-color", "var(--background-main)")
.attr("offset", "100%");

var inner = svg.append("g");
Expand Down

0 comments on commit 654bc6c

Please sign in to comment.