Skip to content

Commit e1ecdd9

Browse files
committed
work
1 parent 7fc9023 commit e1ecdd9

18 files changed

Lines changed: 229 additions & 129 deletions

packages/frontend/navi/dist/jsenv_navi.js

Lines changed: 122 additions & 68 deletions
Large diffs are not rendered by default.

packages/frontend/navi/dist/jsenv_navi.js.map

Lines changed: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/frontend/navi/dist/jsenv_navi_side_effects.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/frontend/navi/dist/jsenv_navi_side_effects.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/frontend/navi/docs/css_architecture.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ comment naming who is supposed to win:
298298
attributes can still change the display;
299299
- the text properties a surface takes back from its opener
300300
(`surface_text_css.js`), so an app that wants one of them back says so;
301-
- the `[data-url-target]` mark, the document's `line-height`, a Field's spacing
302-
and a Label's dimmed color — appearance with no structural role;
301+
- the `[data-url-target]` mark, the document's `line-height` and
302+
`font-family`, a Field's spacing and a Label's dimmed color — appearance with
303+
no structural role;
303304
- `[data-navi-safe-area]`'s padding (`safe_area.js`), which is a suggestion for
304305
an element the **app** owns.
305306

packages/frontend/navi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsenv/navi",
3-
"version": "0.29.150",
3+
"version": "0.29.151",
44
"type": "module",
55
"description": "Library of components including navigation to create frontend applications",
66
"repository": {

packages/frontend/navi/src/control/input/button_ui.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const css = /* css */ `
4141
--button-color: currentColor;
4242
--button-cursor: pointer;
4343
--button-font-size: var(--navi-control-font-size);
44-
--button-font-family: var(--navi-control-font-family);
44+
--button-font-family: var(--navi-control-font-family, inherit);
4545
4646
/* Hover */
4747
--button-border-color-hover: color-mix(

packages/frontend/navi/src/control/input/input_checkbox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const css = /* css */ `
1818
/* Focus outline end */
1919
--margin: 3px 3px 3px 4px;
2020
--font-size: var(--navi-control-font-size);
21-
--font-family: var(--navi-control-font-family);
21+
--font-family: var(--navi-control-font-family, inherit);
2222
--width: round(1em, 1px);
2323
--height: round(1em, 1px);
2424
--loader-color: var(--navi-loader-color);

packages/frontend/navi/src/control/input/input_css.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const inputCss = /* css */ `
1111
--outline-color: var(--navi-focus-outline-color);
1212
/* Focus outline end */
1313
--font-size: var(--navi-control-font-size);
14-
--font-family: var(--navi-control-font-family);
14+
--font-family: var(--navi-control-font-family, inherit);
1515
--loader-color: var(--navi-loader-color);
1616
--border-color: var(--navi-control-border-color);
1717
--background-color: var(--navi-surface-color);
@@ -142,10 +142,10 @@ const inputCss = /* css */ `
142142
color: inherit;
143143
font-size: inherit;
144144
/* A form control does not inherit the font on its own — the browser has
145-
one of its own for it, monospace for a <textarea> — so the box's font
146-
(--navi-control-font-family) is handed down by hand. Its line comes
147-
from the page's token for the same reason: what is typed must sit on
148-
the same line as what displays it afterwards, emoji included. */
145+
one of its own for it, monospace for a <textarea> — so the box's face
146+
is handed down by hand. Its line comes from the page's token for the
147+
same reason: what is typed must sit on the same line as what displays
148+
it afterwards, emoji included. */
149149
font-family: inherit;
150150
text-align: inherit;
151151
line-height: var(--navi-control-line-height);

packages/frontend/navi/src/control/input/input_radio.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const css = /* css */ `
2929
--border-color-checked: var(--accent-color);
3030
--cursor: pointer;
3131
--font-size: var(--navi-control-font-size);
32-
--font-family: var(--navi-control-font-family);
32+
--font-family: var(--navi-control-font-family, inherit);
3333
3434
/* Hover */
3535
--border-color-hover: color-mix(in srgb, var(--border-color) 60%, black);

0 commit comments

Comments
 (0)