@liberation-data/desk 0.35.0 → 0.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -664,7 +664,7 @@ row. It is a tree to the keyboard: up and down through the rows, left out to the
664
664
  child. Depth shows as weight, colour and a small indent, and stops changing at the fourth level, so a deep
665
665
  hierarchy cannot indent itself out of the list. A row is one line, cut with an ellipsis and whole on hover.
666
666
  When what is on show runs past the chosen row — a page that holds three headings — name the others in
667
- `showing` and they are marked with it. A **pop-up button** is what a
667
+ `showing` and they are marked with it; marked rows that touch read as one block, round only at its two ends. A **pop-up button** is what a
668
668
  segmented control becomes when there are too many options to show at once; unlike a menu it takes focus, and
669
669
  typing jumps to an option. A **checkbox** is for a setting that waits for Save (a Toggle applies at once),
670
670
  and can stand for a mixed set. A **slider** reads its value in words for people who cannot see it.
@@ -978,15 +978,27 @@
978
978
  color: var(--desk-ink);
979
979
  }
980
980
 
981
+ /* Marked rows that touch read as one block: only its first and last corners are round. */
982
+ .desk-outline-row:is([data-current], [data-showing]):has(+ :is([data-current], [data-showing])) {
983
+ border-end-start-radius: 0;
984
+ border-end-end-radius: 0;
985
+ }
986
+
987
+ .desk-outline-row:is([data-current], [data-showing]) + :is([data-current], [data-showing]) {
988
+ border-start-start-radius: 0;
989
+ border-start-end-radius: 0;
990
+ }
991
+
981
992
  .desk-outline-row:focus-visible {
982
993
  outline: 2px solid var(--desk-accent);
983
994
  outline-offset: -2px;
984
995
  }
985
996
 
986
- .desk-outline-row:disabled {
987
- opacity: .45;
988
- cursor: not-allowed;
989
- }
997
+ /* The label dims, not the row: a row that cannot be chosen can still be marked, and its mark is
998
+ the same strength as its neighbours'. The row's own opacity is stated, so a page that dims every
999
+ disabled button does not dim the mark with it. */
1000
+ .desk-outline-row:disabled { opacity: 1; cursor: not-allowed; }
1001
+ .desk-outline-row:disabled .desk-outline-label { opacity: .45; }
990
1002
 
991
1003
  .desk-outline-label {
992
1004
  flex: 1;
package/dist/desk.css CHANGED
@@ -2294,15 +2294,27 @@
2294
2294
  color: var(--desk-ink);
2295
2295
  }
2296
2296
 
2297
+ /* Marked rows that touch read as one block: only its first and last corners are round. */
2298
+ .desk-outline-row:is([data-current], [data-showing]):has(+ :is([data-current], [data-showing])) {
2299
+ border-end-start-radius: 0;
2300
+ border-end-end-radius: 0;
2301
+ }
2302
+
2303
+ .desk-outline-row:is([data-current], [data-showing]) + :is([data-current], [data-showing]) {
2304
+ border-start-start-radius: 0;
2305
+ border-start-end-radius: 0;
2306
+ }
2307
+
2297
2308
  .desk-outline-row:focus-visible {
2298
2309
  outline: 2px solid var(--desk-accent);
2299
2310
  outline-offset: -2px;
2300
2311
  }
2301
2312
 
2302
- .desk-outline-row:disabled {
2303
- opacity: .45;
2304
- cursor: not-allowed;
2305
- }
2313
+ /* The label dims, not the row: a row that cannot be chosen can still be marked, and its mark is
2314
+ the same strength as its neighbours'. The row's own opacity is stated, so a page that dims every
2315
+ disabled button does not dim the mark with it. */
2316
+ .desk-outline-row:disabled { opacity: 1; cursor: not-allowed; }
2317
+ .desk-outline-row:disabled .desk-outline-label { opacity: .45; }
2306
2318
 
2307
2319
  .desk-outline-label {
2308
2320
  flex: 1;
package/llms.txt CHANGED
@@ -502,7 +502,8 @@ stop; up and down move through the rows, left goes out to the parent and right i
502
502
  and End to the ends. Depth is drawn with weight, colour and indent, and stops changing at the fourth level
503
503
  (`OUTLINE_MAX_DEPTH`). A `disabled` row is listed and cannot be chosen. `showing` names the rows on show
504
504
  along with `value` (a page that holds several headings): they are marked as the chosen row is, and
505
- `value` stays where the keyboard is.
505
+ `value` stays where the keyboard is. Marked rows that touch are drawn as one block, a `disabled` row
506
+ among them included.
506
507
 
507
508
  Table: one tab stop, arrow keys move the selection, Enter or double click activates, `aria-sort` on
508
509
  sortable headings. It renders what it is given — no paging, no fetching.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liberation-data/desk",
3
- "version": "0.35.0",
3
+ "version": "0.35.1",
4
4
  "description": "A desktop for the web, for React: windows, a dock, menus and commands, controls, tours and setup assistants.",
5
5
  "keywords": [
6
6
  "react",
@@ -977,15 +977,27 @@
977
977
  color: var(--desk-ink);
978
978
  }
979
979
 
980
+ /* Marked rows that touch read as one block: only its first and last corners are round. */
981
+ .desk-outline-row:is([data-current], [data-showing]):has(+ :is([data-current], [data-showing])) {
982
+ border-end-start-radius: 0;
983
+ border-end-end-radius: 0;
984
+ }
985
+
986
+ .desk-outline-row:is([data-current], [data-showing]) + :is([data-current], [data-showing]) {
987
+ border-start-start-radius: 0;
988
+ border-start-end-radius: 0;
989
+ }
990
+
980
991
  .desk-outline-row:focus-visible {
981
992
  outline: 2px solid var(--desk-accent);
982
993
  outline-offset: -2px;
983
994
  }
984
995
 
985
- .desk-outline-row:disabled {
986
- opacity: .45;
987
- cursor: not-allowed;
988
- }
996
+ /* The label dims, not the row: a row that cannot be chosen can still be marked, and its mark is
997
+ the same strength as its neighbours'. The row's own opacity is stated, so a page that dims every
998
+ disabled button does not dim the mark with it. */
999
+ .desk-outline-row:disabled { opacity: 1; cursor: not-allowed; }
1000
+ .desk-outline-row:disabled .desk-outline-label { opacity: .45; }
989
1001
 
990
1002
  .desk-outline-label {
991
1003
  flex: 1;