@rrstudioapps/ngx-command-palette 1.0.0 → 1.1.0
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
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# ngx-command-palette
|
|
2
2
|
|
|
3
|
-
An accessible **⌘K / Ctrl+K command palette for Angular
|
|
4
|
-
[cmdk](https://cmdk.paco.me) and [kbar](https://kbar.vercel.app), built the Angular way:
|
|
5
|
-
standalone components, signals, zoneless-ready and **no dependencies besides Angular** (and `tslib`, see below).
|
|
3
|
+
An accessible **⌘K / Ctrl+K command palette for Angular**, built the Angular way: standalone components, signals, zoneless-ready and **no dependencies besides Angular** (and `tslib`, see below).
|
|
6
4
|
|
|
7
5
|
[](https://github.com/rrstudioapps/ngx-command-palette/actions/workflows/ci.yml)
|
|
8
6
|
[](https://www.npmjs.com/package/@rrstudioapps/ngx-command-palette)
|
|
@@ -17,7 +15,7 @@ standalone components, signals, zoneless-ready and **no dependencies besides Ang
|
|
|
17
15
|
- Opens with **⌘K / Ctrl+K** (configurable, multiple shortcuts allowed), closes with **Esc** or a click outside
|
|
18
16
|
- **Fuzzy search** with highlighted matches, case and accent insensitive, smart ranking (word starts, consecutive letters)
|
|
19
17
|
- Commands grouped in **sections**, with optional **icon**, **description**, **shortcut hint** and extra **keywords**
|
|
20
|
-
- Each command either **navigates to a route** or **runs a function**
|
|
18
|
+
- Each command either **navigates to a route** or **runs a function**; optionally **built from your router configuration**
|
|
21
19
|
- Optional **Recent** section, stored in `localStorage`
|
|
22
20
|
- **Async providers** (e.g. customer search on your API) with debounce, loading state and request cancellation
|
|
23
21
|
- Register commands **from any component** with signals; they are **removed automatically** when the component is destroyed
|
|
@@ -140,29 +138,31 @@ injectCommandProvider({
|
|
|
140
138
|
|
|
141
139
|
### `provideCommandPalette(options?)`
|
|
142
140
|
|
|
143
|
-
| Option | Type | Default | Description
|
|
144
|
-
| ---------------------------- | ------------------------------------------------------------------------ | ---------------------------------------- |
|
|
145
|
-
| `shortcut` | `string \| string[]` | `'mod+k'` | Toggle shortcut(s). `mod` is ⌘ on macOS/iOS and Ctrl elsewhere. Examples: `'ctrl+shift+p'`, `'/'`. Shortcuts without Ctrl/⌘/Alt are ignored while typing in a field. `[]` turns the shortcut off (`open()` still works).
|
|
146
|
-
| `shortcutInFields` | `boolean` | `true` | With `false`, Ctrl/⌘ shortcuts (the palette's and command `hotkey`s) do not fire while typing in an input, textarea, select or contenteditable.
|
|
147
|
-
| `shortcutEnabled` | `boolean \| (() => boolean)` | `true` | A function or a signal is read on every key press. While `false` the shortcut does not open the palette (and the key is left to the page); an open palette can still be closed with it, and `open()` always works.
|
|
148
|
-
| `shortcutPreventDefault` | `boolean` | `true` | With `false` the shortcut does not call `preventDefault()` on the key event.
|
|
149
|
-
| `closeOnSelect` | `boolean` | `true` | With `false` the palette stays open after a command runs (see [Behavior and events](#behavior-and-events)). A command's `closeOnRun` wins.
|
|
150
|
-
| `onOpen`, `onClose`, `onRun` | `() => void`, `(reason) => void`, `(command) => void` | none | Event callbacks. `reason` is `'escape' \| 'overlay' \| 'run' \| 'toggle' \| 'api'`.
|
|
151
|
-
| `restoreFocus` | `boolean \| (() => HTMLElement \| null)` | `true` | Where the focus goes when the palette closes: back to the element that had it before opening (default), nowhere (`false`) or to the element your function returns. See [Behavior and events](#behavior-and-events).
|
|
152
|
-
| `position` | `'top' \| 'center'` | `'top'` | Vertical position of the window. `--rr-cp-top` applies to `'top'`.
|
|
153
|
-
| `sectionOrder` | `string[]` | `[]` | Order of the sections while the search is empty: section ids or group names.
|
|
154
|
-
| `theme` | `'light' \| 'dark' \| 'auto'` | `'auto'` | `auto` follows `prefers-color-scheme`.
|
|
155
|
-
| `
|
|
156
|
-
| `
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
141
|
+
| Option | Type | Default | Description |
|
|
142
|
+
| ---------------------------- | ------------------------------------------------------------------------ | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
143
|
+
| `shortcut` | `string \| string[]` | `'mod+k'` | Toggle shortcut(s). `mod` is ⌘ on macOS/iOS and Ctrl elsewhere. Examples: `'ctrl+shift+p'`, `'/'`. Shortcuts without Ctrl/⌘/Alt are ignored while typing in a field. `[]` turns the shortcut off (`open()` still works). |
|
|
144
|
+
| `shortcutInFields` | `boolean` | `true` | With `false`, Ctrl/⌘ shortcuts (the palette's and command `hotkey`s) do not fire while typing in an input, textarea, select or contenteditable. |
|
|
145
|
+
| `shortcutEnabled` | `boolean \| (() => boolean)` | `true` | A function or a signal is read on every key press. While `false` the shortcut does not open the palette (and the key is left to the page); an open palette can still be closed with it, and `open()` always works. |
|
|
146
|
+
| `shortcutPreventDefault` | `boolean` | `true` | With `false` the shortcut does not call `preventDefault()` on the key event. |
|
|
147
|
+
| `closeOnSelect` | `boolean` | `true` | With `false` the palette stays open after a command runs (see [Behavior and events](#behavior-and-events)). A command's `closeOnRun` wins. |
|
|
148
|
+
| `onOpen`, `onClose`, `onRun` | `() => void`, `(reason) => void`, `(command) => void` | none | Event callbacks. `reason` is `'escape' \| 'overlay' \| 'run' \| 'toggle' \| 'api'`. |
|
|
149
|
+
| `restoreFocus` | `boolean \| (() => HTMLElement \| null)` | `true` | Where the focus goes when the palette closes: back to the element that had it before opening (default), nowhere (`false`) or to the element your function returns. See [Behavior and events](#behavior-and-events). |
|
|
150
|
+
| `position` | `'top' \| 'center'` | `'top'` | Vertical position of the window. `--rr-cp-top` applies to `'top'`. |
|
|
151
|
+
| `sectionOrder` | `string[]` | `[]` | Order of the sections while the search is empty: section ids or group names. |
|
|
152
|
+
| `theme` | `'light' \| 'dark' \| 'auto'` | `'auto'` | `auto` follows `prefers-color-scheme`. |
|
|
153
|
+
| `routes` | `boolean \| { group?, filter?, describe? }` | `false` | Builds a command for every route of the router configuration (see [Commands from your routes](#commands-from-your-routes)). |
|
|
154
|
+
| `recent` | `{ max?, storageKey?, rank?, storage?, enabled? } \| false` | `{ max: 5, storageKey: 'rr-cp:recent' }` | "Recent" section shown when the query is empty. `rank: 'frequent'` orders it by how often and how recently commands ran (count halves every 7 days). `storage` is where they are saved and `enabled` (boolean, function or signal) turns them on or off at runtime (see below). |
|
|
155
|
+
| `debounceMs` | `number` | `200` | Debounce for async providers. |
|
|
156
|
+
| `maxResults` | `number` | `50` | Max local results for a non-empty query. |
|
|
157
|
+
| `maxEmptyResults` | `number` | `100` | Max commands listed when the search is empty (recents not counted). The rest is still found by typing. See [Many commands](#many-commands). |
|
|
158
|
+
| `filter` | `(query, command) => { score, indices } \| null` | built-in fuzzy search | Your own matching and ranking of local commands. See [Custom search](#custom-search). |
|
|
159
|
+
| `prefixes` | `{ prefix, groups?, kind?, label? }[]` | `[]` | Search modes. See [Prefix modes](#prefix-modes). |
|
|
160
|
+
| `labels` | `Partial<CommandPaletteLabels> \| (() => Partial<CommandPaletteLabels>)` | English | All texts, for translations. A function or a signal is read reactively: when a signal it reads changes (e.g. the language), the open palette updates. The texts are: `placeholder`, `dialog`, `listbox`, `empty`, `loading`, `recent`, `pinned`, `routesGroup`, `prefixHints`, `prefixActions`, `prefixPages`, `defaultGroup`, `results` (`'{count} results'`), `resultsOne` (same, for exactly one result; default: `results`), `closeHint`, `back`, `level` (`'{name}: {count} results'`), `levelOne` (same, for one result; default: `level`), `submenu`, `prompt` (`'{name}: type a value and press Enter'`). |
|
|
161
|
+
| `showSectionLabels` | `boolean` | `true` | Shows the section headings (Recent, Pinned, groups). With `false` they are visually hidden and each group keeps its accessible name. |
|
|
162
|
+
| `showPrefixHints` | `boolean` | `false` | Shows a row at the bottom with the search modes of `prefixes`. See [Prefix modes](#prefix-modes). |
|
|
163
|
+
| `showCloseHint` | `boolean` | `true` | Shows the close key (`labels.closeHint`, Esc) in the search field. |
|
|
164
|
+
| `highlightMatches` | `boolean` | `true` | Highlights the characters found by the search. |
|
|
165
|
+
| `showStatus` | `boolean` | `false` | Shows the status line (e.g. "3 results") at the bottom of the window, with the class `rr-cp-status`. It is an `aria-live` region either way. |
|
|
166
166
|
|
|
167
167
|
### Shortcut, recents and texts
|
|
168
168
|
|
|
@@ -239,6 +239,22 @@ provideCommandPalette({
|
|
|
239
239
|
});
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
+
Nobody guesses these shortcuts, so `showPrefixHints: true` adds a row at the bottom that lists them. Each hint is a button: selecting it types the prefix in front of the search text (selecting the active one removes it), which also makes the modes usable on a touch screen.
|
|
243
|
+
|
|
244
|
+
```ts
|
|
245
|
+
provideCommandPalette({
|
|
246
|
+
showPrefixHints: true,
|
|
247
|
+
prefixes: [
|
|
248
|
+
{ prefix: '>', kind: 'action' }, // shown as "> Actions" (`labels.prefixActions`)
|
|
249
|
+
{ prefix: '/', kind: 'route' }, // shown as "/ Pages" (`labels.prefixPages`)
|
|
250
|
+
{ prefix: '#', groups: ['Customers'] }, // shown as "# Customers"
|
|
251
|
+
{ prefix: '@', label: 'People' }, // an explicit label wins
|
|
252
|
+
],
|
|
253
|
+
});
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
A hint is named after its `label`, else its `groups`, else its `kind`; with none of them only the prefix is shown. The row is hidden when there are no prefixes, inside a sub-palette and while a command asks for a value. `labels.prefixHints` is its accessible name.
|
|
257
|
+
|
|
242
258
|
### Many commands
|
|
243
259
|
|
|
244
260
|
Searching is cheap: with 5,000 commands a keystroke costs a few tens of milliseconds. With an empty search,
|
|
@@ -388,6 +404,43 @@ handle shortcut strings. All of them are exported if you want the same behaviour
|
|
|
388
404
|
|
|
389
405
|
## Recipes
|
|
390
406
|
|
|
407
|
+
### Commands from your routes
|
|
408
|
+
|
|
409
|
+
Turn on `routes` and every route of your router configuration becomes a navigation command, so a new page shows up in the palette without writing a command for it:
|
|
410
|
+
|
|
411
|
+
```ts
|
|
412
|
+
provideCommandPalette({ routes: true });
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
The label is the route's `title` when it is a string, otherwise the last path segment (`user-settings` becomes "User settings"). The commands are listed in the `labels.routesGroup` section ("Pages"). Routes are read each time the palette opens, so `router.resetConfig()` is picked up.
|
|
416
|
+
|
|
417
|
+
Left out: redirects, `**`, secondary outlets and paths with a parameter (`:id`), with everything below them. A route without a path that only wraps children (a layout) is not listed itself, but its children are. Route guards are not evaluated, so hide protected pages yourself.
|
|
418
|
+
|
|
419
|
+
Refine one route with `data.commandPalette` (`false` hides it), or many at once with `filter` and `describe`:
|
|
420
|
+
|
|
421
|
+
```ts
|
|
422
|
+
const routes: Routes = [
|
|
423
|
+
{
|
|
424
|
+
path: 'billing',
|
|
425
|
+
component: Billing,
|
|
426
|
+
data: { commandPalette: { label: 'Invoices', keywords: ['pay'] } },
|
|
427
|
+
},
|
|
428
|
+
{ path: 'internal', component: Internal, data: { commandPalette: false } },
|
|
429
|
+
];
|
|
430
|
+
|
|
431
|
+
provideCommandPalette({
|
|
432
|
+
routes: {
|
|
433
|
+
group: 'Go to',
|
|
434
|
+
filter: (route, url) => !url.startsWith('/admin'),
|
|
435
|
+
describe: (route, url) => (url === '/' ? { label: 'Home', keywords: ['start'] } : {}),
|
|
436
|
+
},
|
|
437
|
+
});
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
`filter` and `describe` run in an injection context each time the palette opens, so they can `inject()` a service (for example to look up an icon template). `describe` can return `null` to leave a route out. A command you register by hand with the same `id` (`route:/billing`) or the same `route` replaces the generated one, so you can add an icon, a shortcut or a description to a single page.
|
|
441
|
+
|
|
442
|
+
A route behind `loadChildren` is listed, but its children are only known to the router once they are loaded, so they are not generated: register them yourself.
|
|
443
|
+
|
|
391
444
|
**Translations (i18n).** Pass every text through `labels` (`t` stands for your translation function; the library does not need `@angular/localize`). Translate your own command labels the same way when you build them:
|
|
392
445
|
|
|
393
446
|
```ts
|
|
@@ -512,42 +565,44 @@ Class names (`rr-cp-dialog`, `rr-cp-item`, `rr-cp-item-active`, `rr-cp-match`, `
|
|
|
512
565
|
|
|
513
566
|
**Layout and weight variables.** These have their default as a fallback inside the rules, so they work set on `:root` or `body` as well as on `.rr-cp`. (The variables above are declared on `.rr-cp` itself: set those on `.rr-cp`, a value on `:root` is ignored.) Defaults are today's values.
|
|
514
567
|
|
|
515
|
-
| Variable | Default | Purpose
|
|
516
|
-
| -------------------------------------------------------------------------------------- | -------------------------------------- |
|
|
517
|
-
| `--rr-cp-search-padding`, `--rr-cp-search-gap` | `0 14px`, `10px` | Padding of the search row and gap between its parts
|
|
518
|
-
| `--rr-cp-input-height`, `--rr-cp-input-font-size` | `52px`, `1rem` | Search field
|
|
519
|
-
| `--rr-cp-input-focus-outline` | `none` | Outline of the search field on `:focus-visible`, e.g. `2px solid #4f46e5`
|
|
520
|
-
| `--rr-cp-list-padding` | `6px` | Padding of the list
|
|
521
|
-
| `--rr-cp-item-padding`, `--rr-cp-item-gap` | `6px 10px`, `10px` | Padding of a row and gap between its parts
|
|
522
|
-
| `--rr-cp-label-weight`, `--rr-cp-match-weight` | `inherit`, `600` | Weight of the label and of the matched characters
|
|
523
|
-
| `--rr-cp-description-size`, `--rr-cp-description-color`, `--rr-cp-description-opacity` | `0.8125rem`, `var(--rr-cp-muted)`, `1` | Description under the label
|
|
524
|
-
| `--rr-cp-item-active-fg` | `var(--rr-cp-fg)` | Text color of the active row
|
|
525
|
-
| `--rr-cp-item-active-shadow` | `inset 2px 0 0 var(--rr-cp-accent)` | The bar on the left of the active row; `none` removes it
|
|
526
|
-
| `--rr-cp-status-padding`, `--rr-cp-status-size` | `8px 14px`, `0.75rem` | Status line shown by `showStatus`
|
|
568
|
+
| Variable | Default | Purpose |
|
|
569
|
+
| -------------------------------------------------------------------------------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
570
|
+
| `--rr-cp-search-padding`, `--rr-cp-search-gap` | `0 14px`, `10px` | Padding of the search row and gap between its parts |
|
|
571
|
+
| `--rr-cp-input-height`, `--rr-cp-input-font-size` | `52px`, `1rem` | Search field |
|
|
572
|
+
| `--rr-cp-input-focus-outline` | `none` | Outline of the search field on `:focus-visible`, e.g. `2px solid #4f46e5` |
|
|
573
|
+
| `--rr-cp-list-padding` | `6px` | Padding of the list |
|
|
574
|
+
| `--rr-cp-item-padding`, `--rr-cp-item-gap` | `6px 10px`, `10px` | Padding of a row and gap between its parts |
|
|
575
|
+
| `--rr-cp-label-weight`, `--rr-cp-match-weight` | `inherit`, `600` | Weight of the label and of the matched characters |
|
|
576
|
+
| `--rr-cp-description-size`, `--rr-cp-description-color`, `--rr-cp-description-opacity` | `0.8125rem`, `var(--rr-cp-muted)`, `1` | Description under the label |
|
|
577
|
+
| `--rr-cp-item-active-fg` | `var(--rr-cp-fg)` | Text color of the active row |
|
|
578
|
+
| `--rr-cp-item-active-shadow` | `inset 2px 0 0 var(--rr-cp-accent)` | The bar on the left of the active row; `none` removes it |
|
|
579
|
+
| `--rr-cp-status-padding`, `--rr-cp-status-size` | `8px 14px`, `0.75rem` | Status line shown by `showStatus` |
|
|
580
|
+
| `--rr-cp-hints-padding`, `--rr-cp-hints-size` | `8px 14px`, `0.75rem` | Row of prefix hints shown by `showPrefixHints` (one line, scrolls sideways). The list gets `--rr-cp-hints-height` (`41px`) less room; set it if you change the padding or the font size | |
|
|
527
581
|
|
|
528
582
|
**Borders, spacing and sizes.** Same rule: these work set on `:root`, `body` or `.rr-cp`. Border variables take the whole `border` shorthand (width, style, color), so `none` removes them.
|
|
529
583
|
|
|
530
|
-
| Variable | Default
|
|
531
|
-
| ---------------------------------------------------------------------------------------------------------------------- |
|
|
532
|
-
| `--rr-cp-gutter` | `16px`
|
|
533
|
-
| `--rr-cp-border-width` | `1px`
|
|
534
|
-
| `--rr-cp-line-height` | `1.4`
|
|
535
|
-
| `--rr-cp-search-border` | `1px solid var(--rr-cp-border)`
|
|
536
|
-
| `--rr-cp-status-border` | `1px solid var(--rr-cp-border)`
|
|
537
|
-
| `--rr-cp-
|
|
538
|
-
| `--rr-cp-group-
|
|
539
|
-
| `--rr-cp-
|
|
540
|
-
| `--rr-cp-
|
|
541
|
-
| `--rr-cp-
|
|
542
|
-
| `--rr-cp-
|
|
543
|
-
| `--rr-cp-kbd-
|
|
544
|
-
| `--rr-cp-kbd-
|
|
545
|
-
| `--rr-cp-
|
|
546
|
-
| `--rr-cp-path-
|
|
547
|
-
| `--rr-cp-
|
|
548
|
-
| `--rr-cp-
|
|
549
|
-
| `--rr-cp-
|
|
550
|
-
| `--rr-cp-spinner-
|
|
584
|
+
| Variable | Default | Purpose |
|
|
585
|
+
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | ---------------------------------------------------------------- |
|
|
586
|
+
| `--rr-cp-gutter` | `16px` | Space between the window and the screen edges (sides and bottom) |
|
|
587
|
+
| `--rr-cp-border-width` | `1px` | Width of the border around the window |
|
|
588
|
+
| `--rr-cp-line-height` | `1.4` | Line height |
|
|
589
|
+
| `--rr-cp-search-border` | `1px solid var(--rr-cp-border)` | Line under the search field |
|
|
590
|
+
| `--rr-cp-status-border` | `1px solid var(--rr-cp-border)` | Line above the status line |
|
|
591
|
+
| `--rr-cp-hints-border`, `--rr-cp-hints-gap`, `--rr-cp-hint-radius` | `1px solid var(--rr-cp-border)`, `14px`, `6px` | Line above the prefix hints, gap between them and their corners |
|
|
592
|
+
| `--rr-cp-group-gap`, `--rr-cp-group-border` | `4px`, `none` | Space and optional line (e.g. `1px solid #ddd`) between groups |
|
|
593
|
+
| `--rr-cp-group-label-padding`, `--rr-cp-group-label-size`, `--rr-cp-group-label-weight`, `--rr-cp-group-label-spacing` | `8px 10px 4px`, `0.75rem`, `600`, `0.02em` | Section headings |
|
|
594
|
+
| `--rr-cp-item-min-height`, `--rr-cp-item-disabled-opacity` | `40px`, `0.5` | Rows |
|
|
595
|
+
| `--rr-cp-icon-size` | `20px` | Icon of a row |
|
|
596
|
+
| `--rr-cp-search-icon-size`, `--rr-cp-back-icon-size` | `18px`, `16px` | Magnifier and back arrow |
|
|
597
|
+
| `--rr-cp-kbd-border`, `--rr-cp-kbd-radius` | `1px solid var(--rr-cp-border)`, `4px` | Keys (shortcuts and the close hint) |
|
|
598
|
+
| `--rr-cp-kbd-size`, `--rr-cp-kbd-padding`, `--rr-cp-kbd-gap` | `20px`, `0 5px`, `4px` | Minimum width and height, padding, gap of the keys |
|
|
599
|
+
| `--rr-cp-kbd-font-size`, `--rr-cp-kbd-weight` | `0.6875rem`, `500` | Text of the keys |
|
|
600
|
+
| `--rr-cp-path-gap`, `--rr-cp-path-padding`, `--rr-cp-path-size` | `4px`, `10px 14px 0`, `0.8125rem` | Sub-palette path above the search |
|
|
601
|
+
| `--rr-cp-path-button-padding`, `--rr-cp-path-button-radius`, `--rr-cp-path-current-weight` | `2px 6px`, `6px`, `600` | Buttons of the path and the current level |
|
|
602
|
+
| `--rr-cp-focus-outline`, `--rr-cp-focus-offset` | `2px solid var(--rr-cp-accent)`, `1px` | Focus ring of the path buttons |
|
|
603
|
+
| `--rr-cp-empty-padding` | `32px 16px` | "No results" message |
|
|
604
|
+
| `--rr-cp-spinner-size`, `--rr-cp-spinner-width`, `--rr-cp-spinner-duration` | `14px`, `2px`, `0.7s` | Loading spinner |
|
|
605
|
+
| `--rr-cp-spinner-color`, `--rr-cp-spinner-track` | `var(--rr-cp-accent)`, `var(--rr-cp-border)` | Spinner colors |
|
|
551
606
|
|
|
552
607
|
`position: 'center'` ignores `--rr-cp-top`. For no opening animation set `--rr-cp-duration: 0ms`.
|
|
553
608
|
|
|
@@ -590,6 +645,7 @@ provideCommandPalette({
|
|
|
590
645
|
so the focus never leaves the input.
|
|
591
646
|
- Disabled commands use `aria-disabled` and are skipped by the keyboard.
|
|
592
647
|
- Focus is trapped inside the dialog and **restored** to the previously focused element on close.
|
|
648
|
+
- The prefix hints (`showPrefixHints`) are real buttons in a labelled group, pressed state included, and part of the focus trap.
|
|
593
649
|
- A polite live region announces the number of results and the loading state (visible with `showStatus`).
|
|
594
650
|
- The search field has no focus ring by default (the active row is the visible focus). If your design needs one, set `--rr-cp-input-focus-outline`. With `showSectionLabels: false` the groups keep their accessible name.
|
|
595
651
|
- Animations are disabled with `prefers-reduced-motion: reduce`, and active rows and matches
|
|
@@ -618,4 +674,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
|
618
674
|
## Also by rrstudio
|
|
619
675
|
|
|
620
676
|
Looking for a complete Angular admin dashboard? See the live demos of the
|
|
621
|
-
[dashboard templates](https://demo.rr-dev.eu/) by the same author
|
|
677
|
+
[dashboard templates](https://demo.rr-dev.eu/) by the same author.
|