@cagovweb/cal-ds-nav
Advanced tools
Comparing version 0.0.1-beta1 to 0.0.1-beta2
@@ -1,2 +0,2 @@ | ||
var CssBaseStyleString = ":host{font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",\"Noto Sans\",\"Liberation Sans\",Arial,sans-serif;--gray-50:#f66;--gray-100:#fa0;--gray-200:#ff0;}"; | ||
var CssBaseStyleString = ":host{font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",\"Noto Sans\",\"Liberation Sans\",Arial,sans-serif;--gov-header:#071645;--brand-primary:#13394b;--brand-secondary:#0070a3;--banner-light:#d5dbde;--banner-dark:#09202b;--brand-hover-light:#3ca3d3;--brand-hover-dark:#246c8e;--background-primary-light:#d9d8cf;--background-secondary-light:#f5f3eb;--background-primary-dark:#43433f;--background-secondary-dark:#65645f;--action-primary:#fec335;--action-secondary:#fae2ad;--text-white:#fff;--grey:#ccc;--grey-text:#323232;--grey-background:#eee;--gutter-gap:1.674vw;--flow-space:1rem;--radius:1rem;--shadow:0.2rem 0.2rem 0.5rem 0 rgba(0 0 0 / 25%);--shadow-focus:0.1rem 0.1rem 0.25rem 0 rgba(0 0 0 / 10%);--shadow-active:0.2rem 0.2rem 0.5rem 0 rgba(0 0 0 / 60%);--font-size:1rem;--ratio:1.24;--s0:calc(var(--font-size) - 0.3rem) + 0.2vw;--st:calc(var(--s0) * var(--ratio));--base:calc(var(--st) * var(--ratio));--lt:calc(var(--base) * var(--ratio));--h6:calc(var(--s0) * var(--ratio));--h5:calc(var(--h6) * var(--ratio));--h4:calc(var(--h5) * var(--ratio));--h3:calc(var(--h4) * var(--ratio));--h2:calc(var(--h3) * var(--ratio));--h1:calc(var(--h2) * var(--ratio) * var(--ratio));}"; | ||
@@ -208,3 +208,3 @@ //@ts-check | ||
var css = ":host > nav > ul{display:flex;list-style:none;& > li > a{font-size:xx-large;padding:1rem;text-decoration:none;&[aria-current=\"page\"]{font-weight:900;pointer-events:none;}&:hover{background-color:#fafafa;}}}"; | ||
var css = ":host > nav{background-color:var(--gov-header);padding-bottom:0.03rem;> ul{display:flex;list-style:none;> li{> a{color:var(--text-white);text-decoration:none;font-size:0.9rem;margin-right:2.5rem;&[aria-current=\"page\"]{pointer-events:none;text-decoration:solid underline var(--action-primary) 0.3rem;}&:hover{background-color:var(--brand-hover-dark);}}}}}"; | ||
@@ -217,3 +217,3 @@ var html = "<nav role=\"navigation\"> <ul role=\"menubar\"></ul> </nav> "; | ||
class index extends cal_ds_base { | ||
class my_component extends cal_ds_base { | ||
/** @override */ | ||
@@ -244,2 +244,3 @@ static get tagName() { | ||
const li = document.createElement("li"); | ||
li.role = "menuitem"; | ||
@@ -260,4 +261,2 @@ a.parentElement?.appendChild(li); | ||
a.tabIndex = -1; | ||
} else { | ||
a.role = "menuitem"; | ||
} | ||
@@ -292,2 +291,13 @@ }); | ||
export { index as default }; | ||
//@ts-check | ||
//comment out any elements you are not using | ||
//Definition order matters!!! Code will run in this order | ||
const my_bundle = [my_component]; | ||
for (const c of my_bundle) { | ||
//sync "for", to ensure define order | ||
window.customElements.define(c.tagName, c); | ||
} |
{ | ||
"name": "@cagovweb/cal-ds-nav", | ||
"version": "0.0.1-beta1", | ||
"version": "0.0.1-beta2", | ||
"description": "cal-ds-nav navigation menu", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
18791
10
378
0