Meta tags:
description= Description Secondary hover labels inherit their text color from the trace color. However, light or low contrast trace colors can make the text difficult to read against the label background. I propose using Color.wcagContrast() with a 4...;
Headings (most frequently used words):
navigation, commented, on, oct, 2026, labels, description, metadata, footer, 27, feature, add, automatic, contrast, for, secondary, hover, 8149, menu, repository, activity, issue, actions, camdecoster, koolade85, lexachoc, 28, assignees, type, projects, milestone, relationships, development, before, after,
Text of the page (most frequently used words):
the (22), github (14), and (14), for (11), 2026 (10), #contrast (9), oct (9), this (8), new (8), label (8), actions (7), something (6), feature (6), backlog (6), labels (6), your (6), you (5), security (5), copilot (5), issue (5), sign (5), color (5), hover (5), colour (5), more (5), code (5), that (4), have (4), automatic (4), yellow (4), trace (4), lexachoc (4), with (4), secondary (4), add (4), plotly (4), support (4), navigation (3), open (3), projects (3), size (3), enhancement (3), one (3), user (3), supplied (3), namecolor (3), search (3), could (3), darker (3), shade (3), against (3), background (3), black (3), contributor (3), commented (3), koolade85 (3), camdecoster (3), text (3), copy (3), link (3), 8149 (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), all (3), build (3), can (2), not (2), community (2), status (2), footer (2), pull (2), requests (2), development (2), milestone (2), type (2), metadata (2), comment (2), already (2), original (2), only (2), 8115 (2), also (2), want (2), ensure (2), respect (2), even (2), doesn (2), good (2), would (2), binary (2), just (2), compare (2), darken (2), lighten (2), until (2), contrasts (2), enough (2), screenshot (2), envision (2), being (2), rather (2), than (2), about (2), coding (2), added (2), see (2), review (2), description (2), insights (2), 727 (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, contact, docs, privacy, terms, inc, app, branches, none, yet, relationships, assigned, assignees, account, join, conversation, free, agreed, was, behavior, adjustment, applies, when, explicitly, specified, always, respected, concern, potential, performance, impact, since, calculation, run, during, rendering, var, think, feasible, maybe, use, fixed, iteration, perhaps, iterations, find, lighter, meets, while, preserving, hue, author, been, thinking, how, avoid, making, nice, both, requirements, thanks, opening, will, follow, activity, after, before, related, r4383215739, 1926941, 2342, propose, using, threshold, automatically, select, readable, wcagcontrast, inherit, their, from, however, light, low, colors, make, difficult, read, body, opened, items, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, pricing, event, talks, workshops, what, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, environments, codespaces, analysis, enforcement, automation, ship, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
Text of the page (random words):
feature add automatic contrast for secondary hover labels issue 8149 plotly plotly js github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message plotly plotly js repository navigation code issues 727 727 pull requests 81 81 actions security and quality insights more items feature add automatic contrast for secondary hover labels 8149 new issue copy link new issue copy link open open feature add automatic contrast for secondary hover labels 8149 copy link labels p3 backlog backlog enhancement feature something new something new size 1 description lexachoc opened on oct 27 2026 issue body actions description secondary hover labels inherit their text color from the trace color however light or low contrast trace colors can make the text difficult to read against the label background i propose using color wcagcontrast with a 4 5 1 threshold to automatically select a more readable text color related to 2342 and 8115 see the review comment 1926941 r4383215739 before after activity lexachoc added feature something new something new on oct 27 2026 camdecoster commented on oct 27 2026 camdecoster on oct 27 2026 contributor more actions thanks for opening this koolade85 will follow up with you on this camdecoster added enhancement p3 backlog backlog size 1 on oct 27 2026 koolade85 commented on oct 27 2026 koolade85 on oct 27 2026 contributor more actions i ve been thinking about this one and how to avoid making the label just black it would be nice to have both the colour coding and the contrast requirements so could we compare the label colour against the background colour and darken lighten the label until it contrasts enough in your screenshot i envision the yellow trace label being a darker shade of yellow rather than black i d also want to ensure that we respect a user supplied namecolor even if it doesn t have good contrast lexachoc commented on oct 28 2026 lexachoc on oct 28 2026 contributor author more actions so could we compare the label colour against the background colour and darken lighten the label until it contrasts enough in your screenshot i envision the yellow trace label being a darker shade of yellow rather than black i think this is feasible we could maybe use a fixed iteration binary search perhaps just 5 iterations to find a lighter or darker shade that meets the contrast while preserving the original hue for var i 0 i 5 i binary search my only concern is the potential performance impact since this calculation would run during hover rendering i d also want to ensure that we respect a user supplied namecolor even if it doesn t have good contrast agreed this was already the behavior in my original pr 8115 the automatic contrast adjustment only applies when namecolor is not explicitly specified so user supplied color is always respected sign up for free to join this conversation on github already have an account sign in to comment metadata metadata assignees no one assigned labels p3 backlog backlog enhancement feature something new something new size 1 type no type projects no projects milestone no milestone relationships none yet development no branches or pull requests issue actions open in github copilot app footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|