@editora/toast 2.1.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 06763f8: A modern look and real accessibility for the code editor's overlays, and contrast preferences for the toast.
8
+
9
+ **`@editora/light-code-editor`**
10
+ - **Accessibility:** the editing surface is a named, multi-line `role="textbox"` (`aria-readonly` when read-only), with a new `ariaLabel` option. The completion popup is a combobox listbox, not an unnamed dialog: the editor carries `aria-activedescendant`, `aria-controls` and `aria-haspopup` while it is open, options have ids, the list is focusable for scrolling and the status line is a polite live region. Find is a named `search` landmark with named inputs and icon buttons, go to line is a named group (its "Go" button's name now contains its visible text), the hover card and the context menu are named, and the fold toggles are buttons with `aria-expanded`.
11
+ - **Contrast:** muted text (gutter, meta, descriptions, shortcuts) was 3.6:1 on the active row in the dark theme; it is 4.5:1 or better in both themes, and the completion match highlight keeps 4.5:1 on the active row.
12
+ - **Look and feel:** one overlay system for find, go to line, completions, the context menu and the hover card (a raised surface, a hairline, a soft shadow, a 120ms pop-in that respects reduced motion, one focus ring). Completions get a coloured kind badge, a highlighted match, an accent bar on the active row, one-line descriptions and a keyboard-hint footer. Find options are toggle chips with a check mark, buttons use icons, fold toggles are chevrons that appear when the gutter is hovered (folded regions always show theirs), and the editor scrolls with a thin scrollbar.
13
+ - **Theme:** `setTheme()` also writes `--editor-surface`, `--editor-surface-hover`, `--editor-border-strong`, `--editor-accent`, `--editor-accent-soft`, `--editor-accent-contrast` and `--editor-shadow` (see the README); the dark gutter foreground is `#a6a6ab` (was `#858585`).
14
+
15
+ **`@editora/toast`**
16
+ - The toast honours `prefers-contrast: more` (a full-strength border, no shadow, full-strength description text, an always-visible close button) and Windows High Contrast / `forced-colors` (system colours for the card, text, actions, close button and progress bar).
17
+
3
18
  ## 2.1.0
4
19
 
5
20
  ### Minor Changes
package/dist/toast.css CHANGED
@@ -711,6 +711,38 @@
711
711
  .editora-toast-icon[data-spin="true"] svg { animation-duration: 1.6s; }
712
712
  }
713
713
 
714
+ /* ── Contrast preferences ─────────────────────────────────────── */
715
+ @media (prefers-contrast: more) {
716
+ .editora-toast { border-color: var(--et-text); box-shadow: none; }
717
+ .editora-toast-description,
718
+ .editora-toast-progress-text { color: var(--et-text); }
719
+ .editora-toast-close { opacity: 1; color: var(--et-text); }
720
+ .editora-toast-action { border-color: var(--et-text); }
721
+ }
722
+
723
+ /* Windows High Contrast and other forced palettes: use the user's system colours. */
724
+ @media (forced-colors: active) {
725
+ .editora-toast {
726
+ forced-color-adjust: none;
727
+ background: Canvas;
728
+ color: CanvasText;
729
+ border: 1px solid CanvasText;
730
+ box-shadow: none;
731
+ }
732
+ .editora-toast-title,
733
+ .editora-toast-message,
734
+ .editora-toast-description,
735
+ .editora-toast-progress-text,
736
+ .editora-toast-icon { color: CanvasText; }
737
+ .editora-toast-action { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
738
+ .editora-toast-action.primary { background: Highlight; color: HighlightText; border-color: Highlight; }
739
+ .editora-toast-close { opacity: 1; color: ButtonText; }
740
+ .editora-toast-action:focus-visible,
741
+ .editora-toast-close:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
742
+ .editora-toast-progress-track { background: GrayText; }
743
+ .editora-toast-progress-bar { background: Highlight; }
744
+ }
745
+
714
746
  /* ── Mobile ──────────────────────────────────────────────────── */
715
747
  @media (max-width: 480px) {
716
748
  .editora-toast-container {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editora/toast",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Enterprise toast notification library for React and web apps, with SaaS-ready UX patterns, accessibility, and high-performance lifecycle controls.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",