Skip to content

Shared UI migration evidence ​

The migration uses shared logic, open-shadow views and CSS from ooxml-ui/pptx. Native adapters coordinate core document commands, history, persistence and framework lifecycle. DOM-free editing lives in src/core/pptx/editor. The contributor's 126 work units are an inventory of surfaces, not 126 required public custom-element tags.

Theme editor (#364) ​

The baseline was recorded on the issue before implementation. All screenshots use the same sample deck, 1440 x 900 viewport and Design > Edit Theme entry.

BindingBaseline placementBeforeShared editor
ReactRight dock below the ribbonBeforeAfter
VueFull-window fixed overlayBeforeAfter
AngularCentered gallery modalBeforeAfter
SvelteEditor inside the ribbonBeforeAfter
VanillaRight dock below the ribbonBeforeAfter

The shared editor docks against the editor body, with a bottom sheet below 768px. Every binding offers the same ten presets, twelve colors, font fields, preview, Apply, Reset and Close. Fields and presets update a local draft; Apply sends one complete detached edit to the native host. Reset restores the current host theme. Close and Escape discard the draft and restore opener focus. Secondary inline placements use the same view without automatic focus.

The property/event/lifecycle contract is documented in src/ui/src/pptx/web-components/README.md. The neutral browser spec is e2e/pptx/theme-editor-migration.spec.ts; it checks docking, focus, draft dismissal, Reset, Apply, saved theme XML, narrow actions and forced colors. Adapter unit tests cover native callbacks, disabled state and React 18/19 compatibility.

Ribbon rollout (#363) ​

Every planned ribbon family has been delivered in all five bindings. The sections below record each one, in the order they landed.

FamilyIssueStatus
Home#373Delivered, see "Home"
Insert#374Delivered, see "Insert"
Transitions#377Delivered, see "Transitions"
Animations#378Delivered, see "Animations"
Distinct non-ribbon buttons and icon-buttons#386Delivered, see "Non-ribbon families (#386)"

The Slide Show, Help and Record batches established the command/group contract and the five-binding adapters; later tabs reused them. Slide-content rendering stays a separate architecture decision. This page is a historical evidence log: it records what was measured when each batch landed, not a list of outstanding work.

Design, Review and contextual galleries ​

Design (#376), Review (#379), Shape Format (#381), Picture Format (#382), Table Design (#383), Chart Design (#384) and SmartArt Design (#385) now use shared groups, commands and gallery views in all five bindings. The main UI rework tracker (#342) covers the control primitives and tokens described later on this page.

Design command metadata controls availability and open state. Review uses seven canonical groups and a keyed section view that preserves command focus when native state changes. Gallery descriptors supply previews and selection; the shared view owns popup placement, keyboard navigation, dismissal, touch targets and forced-color styling. Native hosts still own document edits, history, selection, comments, dialogs and saving. The property/event contract is in src/ui/src/pptx/web-components/README.md.

Comparable screenshots use the same decks and 1440 x 900 viewport. Baseline files are in /assets/ui-migration/ribbon-baseline/; completed views are in /assets/ui-migration/ribbon-after/. Filenames combine the binding and tab, for example react-review.png and vue-shapeFormat.png.

Neutral browser coverage is in ribbon-contextual-migration.spec.ts, ribbon-gallery-migration.spec.ts and ribbon-review-migration.spec.ts. It exercises actual chart and SmartArt style/color edits through save and reload, Review spelling/language/comments actions, customization, focus, narrow layouts, touch targets and forced colors. Save/reload checks also identified and fixed missing SmartArt quick-style intensity serialization, SmartArt color-definition updates and chart gallery selection reconstruction.

Draw ​

Draw (#375) uses one controlled shared view for Select, Pen, Highlighter, Eraser, Freeform, color and width. Native hosts own pointer gestures, ink creation, erasure, history and recent-color persistence. Live custom-color input updates the tool; a committed choice also updates native recent colors. All five bindings offer the same width range (1 to 16) and presets.

The view preserves public customization ids and focused tool buttons during state updates. The color palette clamps to the viewport, closes on outside pointer or Escape, and restores opener focus on Escape. Read-only hosts disable drawing intents. Theme tokens, forced colors and coarse-pointer targets follow the shared control contract. Comparable screenshots are <binding>-draw.png in the baseline and after directories.

e2e/pptx/ribbon-draw-migration.spec.ts covers keyboard tool activation, native ink creation, undo/redo, InkML save/reload, customization, tokens, touch targets and dismissal. Saved InkML verifies width and color; rendered paths or pressure circles verify the reloaded stroke. Existing highlighter and tilt specs separately cover variable geometry.

View ​

View (#380) uses one controlled shared view, pptx-ui-ribbon-view, for the Presentation Views, Master Views, Show, Zoom and Window groups. It owns the group markup, icons, labels, pressed/checked and disabled state. Hosts supply viewer options and route typed view-request intents (command, option or guide) to native handlers. Persisted viewer options (rulers, grid, guides, snapping), view switching (Normal, Slide Sorter, Outline, Reading, Slide Master), the browser EyeDropper and its selection patch, template-element editing and the editor history stay native in each binding.

All five bindings now share one control set: Rulers, Grid, Guides and Snap to Grid are checkbox rows; Selection, Eyedropper, Snap to Shape, H/V Guide and the template toggle are commands with pressed state. Public customization ids are unchanged, including the single view.show.addGuide id that wraps both guide buttons. Hosts without Selection Pane or Eyedropper wiring hide those commands; hosts that hide the zoom action drop the Zoom group from the DOM. Slide Master, Eyedropper and template editing are disabled when read-only. Handout Master, Notes Master, Zoom and Macros remain disabled placeholders.

Boundary: the full-window Outline, Reading and Slide Sorter views are native overlays and are not part of this change. Eyedropper active state is only reflected where the host exposes it (React, Vue and Angular). e2e/pptx/ribbon-view-migration.spec.ts covers ids, keyboard and pointer toggles, native ruler effects, Outline/Normal switching, template state, preference persistence, customization, touch targets, theme tokens and forced colors. Comparable screenshots are <binding>-view.png in the baseline and after directories.

Transitions ​

Transitions (#377) uses one controlled shared view, pptx-ui-ribbon-transitions, for the Preview, Transition to This Slide and Timing groups: the preset gallery, Duration, Sound (None, 19 stock sounds, Other Sound...), Apply to All, Advance Slide (On Mouse Click and After) and the Inspector toggle. Hosts derive the state from the active slide through the shared readRibbonTransitionDraft and route typed transitions-request intents. Slide mutation, undo history, persistence, the stage transition preview replay, audio playback, the sound file read into the save pipeline and the inspector pane stay native.

Parity fixes: every binding now shows the same controls with pressed state on the active preset and gates edits when read-only (Angular previously never did). Duration commits live while the After time commits on blur or Enter: React and Vue used to commit the time per keystroke, and Vanilla and Angular committed Duration only on blur. Public customization ids are unchanged. The Effect Options catalogue id still has no control in any binding. Boundary: the Vanilla and Angular hosts do not track inspector open state, so their Inspector command never shows as pressed.

e2e/pptx/ribbon-transitions-migration.spec.ts covers ids, keyboard activation, applying a preset, duration, a timed advance and a stock sound to the deck, undo/redo, save and reload, Apply to All across slides, the stage Preview, customization, touch targets, theme tokens, focus and forced colors. ribbon-control-effects.spec.ts, ribbon-compact-layout.spec.ts and effect-sound-gallery.spec.ts cover the same controls from earlier work. Comparable screenshots are <binding>-transitions.png in the baseline and after directories.

Animations ​

Animations (#378) uses one controlled shared view, pptx-ui-ribbon-animations, for the Preview, Animation, Motion Paths, Advanced Animation and Timing groups. It owns the group markup, the always-visible entrance/emphasis/exit and motion-path galleries, icons, labels, pressed and disabled state. Hosts supply the selection, edit permission, Animation Pane state and a translator, and route typed animations-request intents (add or command) to native handlers.

Native hosts keep the animation play-order timeline with drag reordering in Svelte and Vanilla, the Animation Pane/inspector lifecycle, in-canvas Preview playback, document history and persistence. All five bindings now share one control set: Exit Effects carries the catalogue's animations.advancedAnimation.addAnimation id everywhere, the Animation Pane shows its pressed state when the inspector is open, and the Angular Effect Options and Trigger commands open the Animation Panel like the other bindings. Animation Painter copies editor-authored effects or the imported effect chosen in the Animation Pane. Click once for one target, double-click to paint several, and press Escape to exit. The Timing group edits Start, Duration and Delay for the chosen imported effect. Imported effects with interactive triggers keep their Start mode. Reordering in the Timing group applies to editor-authored entries.

Public customization ids are unchanged. Boundary: the Svelte and Vanilla play-order timeline rows and the inspector Animation panel are native and not part of this change. e2e/pptx/ribbon-animations-migration.spec.ts covers ids, a real effect added through the gallery, the deck-level animation pane, undo/redo, save and reload, customization, touch targets, focus, theme tokens and forced colors. Comparable screenshots are <binding>-animations.png in the baseline and after directories.

Insert ​

Insert (#374) uses one controlled shared view, pptx-ui-ribbon-insert, for the Tables, Images, Illustrations (Shapes, Freeform tools, Chart, SmartArt), Links (Link, Action), Text (Text Box, Field, Header & Footer), Symbols (Equation) and Media groups. It owns the markup, icons, labels, pickers, pressed Freeform state and disabled/read-only gating; hosts supply viewer state and route typed insert-request intents (command, shapeType/shape, chartType/chart, freeform, actionButton, field) to native handlers.

Native in every binding: document mutation, undo/history and persistence, the image/media file pickers, the SmartArt gallery, equation editor, hyperlink and Header & Footer dialogs, Freeform arming and the canvas overlay, and (React, Vue, Angular) the Date/Time format picker. Public customization ids are unchanged; Header & Footer still has none.

Parity gaps fixed before migrating: Angular's Insert controls were never disabled in a read-only deck and its Link ignored the selection state; Svelte and Vanilla used native selects or popups for Action and Field while React, Vue and Angular used hover-only popups. All five now share click and keyboard menus. The Shape button's glyph follows the staged preset in every binding. Svelte and Vanilla still insert the current date directly for the Date/Time field (no format picker), as before. Group order now follows PowerPoint (Text Box moved into the Text group) and each group has a caption (new pptx.insert.group* keys in English, German, Spanish, French and Simplified Chinese).

e2e/pptx/ribbon-insert-migration.spec.ts covers ids, keyboard and pointer insertion of a text box, shape and table with undo/redo and a save/reload round trip, the Chart/Action/Field menus, Freeform pressed state, Link selection gating, the native SmartArt/Equation dialogs and image file chooser, customization, touch targets, theme tokens and forced colors. Comparable screenshots are <binding>-insert.png in the baseline and after directories.

Home ​

Home (#373) is delivered in group families, so the large tab stays reviewable. PR #359 had already moved the Home icon artwork (RIBBON_CONTROL_ICONS), the catalogue ids and the editor-chrome layout CSS into shared code; the markup, gating and callbacks of every group were still duplicated per binding. Each family below now uses one controlled shared view, pptx-ui-ribbon-home-<family>, that renders the buttons, icons, labels, pressed and disabled state, and emits one typed home-request intent with the public control id (plus a value for picks). Hosts keep every document mutation, history entry and persistence. Public customization ids are unchanged.

  • Clipboard: Paste, Cut, Copy and Format Painter (the whole home.clipboard group). Gating is now identical in all five bindings; Angular's Format Painter previously stayed live in a read-only viewer and now follows the other four. The React and Vue "copied/cut" green flash was cosmetic and is not carried over.
  • Font: the character strip in home.font (Bold, Italic, Underline, Strikethrough, Text Shadow, Increase and Decrease Font Size, Clear Formatting) plus character spacing, change case and the font and highlight colour popovers, and the family and size fields as font-picker. How each binding computes the toggle and size-step edits is unchanged (React reads the run-level tri-state at click time; the size ladder differs between bindings).
  • Paragraph: Bullets and Numbering (toggle plus the shared library gallery), Decrease and Increase Indent, the four alignments, line spacing, text direction and columns in home.paragraph. Alignment is reflected as pressed when the viewer can read an explicit alignment.
  • Editing: Find, Replace and the Select menu in home.editing.
  • Slides: the whole home.slides group (split New Slide, Slide Templates, Layout, Reset, Section) including the New Slide and Layout thumbnail galleries.
  • Drawing: Shapes and Arrange menus, Shape Fill and Shape Outline colour popovers, Quick Styles and Shape Effects.
  • Arrange: Align and Distribute, Flip, z-order, Duplicate/Delete as four strips, plus the second Format Painter, Group and Ungroup, Merge Shapes, Crop (split with its aspect-ratio menu) and the outline width spinner.

Behaviour changes to know: popover triggers carry aria-haspopup and aria-expanded and all of them open on click (React and Vue's hover menus and Angular's hover popovers no longer exist); menus and colour popovers close on a pick, Escape or an outside press. Every text extra now enables on an editable text selection (canMut && canFormat), not on a selection alone. Menus that were English strings in React and Svelte (line spacing, text direction, columns) now translate. Character spacing offers the shared five presets (Angular's wider list is gone), Shapes lists the first twelve shared catalogue presets in every binding (Vue's custom list is gone), and Group/Ungroup live in the Arrange strip only (they no longer repeat in the Drawing Arrange menu). The Svelte font size field no longer accepts a typed size that is not in the preset list (it still displays one), matching the other four. Table cells can toggle Bullets and Numbering in Vue as in React. Angular Arrange and Svelte Fill/Outline/z-order follow read-only mode.

Locale: Vue and Svelte derive the shared translate with homeSnapshotTranslator over every family they render, inside the reactive state, so a runtime language change re-translates the strips; React and Angular re-apply on i18n/TranslateService change and Vanilla rebuilds its chrome. Unit tests per binding and e2e/pptx/editor-controls-localization.spec.ts cover it.

Decision per control ​

Every control that was native before this change now renders in a shared element. The adapters supply state and handle typed intents with their own undoable edit functions.

Control (customization id)Shared implementationAdapter provides
Font family and size (home.font.fontFamily, fontSize)font-picker on pptx-ui-select (ribbon-font)Current values, theme/embedded/custom fonts; applies family and size
Character spacing (characterSpacing)font strip, pptx-ui-select ribbon-iconCurrent spacing; applies characterSpacing
Change case (changeCase)font strip, command menuRuns the binding's text transform (table cells use the textCaps hint)
Font colour, highlight (fontColor, highlightColor)font strip, shared colour popoverTheme colour map and recents; applies colour and theme reference, pushes recents
Bullets, Numbering (bullets, numbering)paragraph strip: toggle plus embedded library galleryList kind, gallery context; toggles the list, applies a gallery tile
Line spacing, text direction, columnsparagraph strip, pptx-ui-select ribbon-iconCurrent values; applies the style patch
Select (home.editing.select)editing strip, command menuSelect All handler
New Slide caret, Layout galleriesslides strip, layout tile galleryLayouts, current layout, previews; draws thumbnail artwork through layoutArtwork; inserts or applies the layout
Slide Templates (slideTemplates)slides strip buttonOpens the native dialog (dialogs are #342 and #396)
Shapes, Arrange menus (drawing)drawing strip, command menusInserts the shape, runs the z-order command
Shape Fill, Shape Outlinedrawing strip, shared colour popoverCurrent colour and theme data; applies shapeFillChange / shapeOutlineChange
Quick Styles, Shape Effectsdrawing strip, embedded pptx-ui-ribbon-galleryGallery context; applies the tile
Second Format Painter (formatPainter in Arrange)arrange-painter stripArmed and enabled state; toggles the painter
Group, Ungroup (group, ungroup)arrange-shape stripGating; runs the binding's group edit
Merge Shapes (mergeShapes)arrange-shape command menuGating; runs the merge operation
Crop (crop)arrange-shape split control (main toggle plus menu)Crop session; toggles it or crops to a ratio, fills or fits
Outline width (outlineWidth)arrange-shape number inputCurrent width; applies strokeWidth

Native on purpose, with the technical reason:

  • The Slide Templates dialog itself. It is a modal dialog with focus management owned by the dialog migration (#342 and #396); the Home button that opens it is shared.
  • The artwork drawn inside each layout thumbnail. It is slide-element rendering (StaticElementRenderer in React, SlideStage in Vue and Svelte, pptx-element-renderer in Angular, the DOM renderer in Vanilla), and slide-content rendering is a separate architecture decision. The thumbnail shell, geometry, current-tile marking, keyboard and popover are shared and the host draws into the already-scaled surface through layoutArtwork.
  • The canvas context-menu and thumbnail-rail layout galleries (LayoutGalleryMenu in React, Vue, Svelte and Angular, ViewerMainContent, ViewerEditDialogs): context menus are reserved for #393.

e2e/pptx/ribbon-home-migration.spec.ts covers ids, selection and clipboard gating, real copy/paste/cut with undo and redo, the Format Painter, customization, touch targets, theme tokens and forced colors across all five bindings, and now the font, colour, paragraph, Select, Shape Fill/Outline, outline width, Arrange menu and layout gallery controls including a save and reload. Comparable screenshots of this change are in /assets/ui-migration/home-remaining-before/ and /assets/ui-migration/home-remaining-after/ (<binding>-home.png); earlier Home captures remain in the baseline and after directories.

Non-ribbon buttons (#386) ​

The audit below covers every non-ribbon button or icon-button family. It was taken from the component inventory of the five bindings (React viewer/components, Vue viewer/components, Angular viewer/*.component.ts, Svelte viewer/components, Vanilla viewer/ui) and from reading the status bar, read-only banner and paste options sources. Families other than the status bar were classified from their file structure and the sources named in the table and were not migrated, so "keep native" is a scheduling decision, not a claim that no sharing is possible. Ribbon commands are out of scope: they already use pptx-ui-ribbon-command (#363). A family only migrates when one shared element can own its markup, gating and callbacks without changing behaviour.

FamilyWhere it appearsDuplicated markup or behaviourDecision
Status bar (counter, save state, notes, view modes, zoom)React StatusBar.tsx, Vue StatusBar.vue, Angular status-bar.component.ts, Svelte StatusBar.svelte, Vanilla ui/status-bar.tsYes, five hand-built copiesMigrate (this change): pptx-ui-status-bar. Same labels, gating and callbacks; hosts only map state and intents.
Read-only banner (Edit anyway, Dismiss, password prompt)ReadOnlyBanner in all five bindingsYesKeep native for now. It owns a password form with focus, error and busy states; migrate as its own element in a follow-up.
Paste options toolbarPasteOptionsToolbar in all five bindingsYesKeep native for now. Anchored to a canvas element with capture-phase dismissal; needs a shared popup-anchoring contract first.
Dialog footers (Cancel, OK, Apply, Close)About 25 dialogs per binding, inside different modal shells (React useModalFocus, Vue ModalDialog.vue, others)Yes, but per dialogKeep native. Footers are inseparable from each binding's focus trap and dismissal; a shared dialog shell contract must come first.
Context menus: element, canvas, slide thumbnail, presentationAll five bindingsYesMigrated (#393): shared pptx-ui-context-menu; see "Context menus (#393)" below. Sorter and section menus are native (#397).
Presentation toolbar and presenter console toolbarAll five bindingsPartlyKeep native. Show-time overlay with auto-hide, touch and fullscreen coupling.
Mobile bottom bar and mobile top toolbarReact, Vue, Angular, Vanilla; Svelte has no separate bottom barNo, differs by bindingKeep native: not identical across bindings.
File backstage navigation and cardsReact, Angular, Svelte; Vue and Vanilla have no equivalentNo, differs by bindingKeep native: not present in all five bindings.
Slide rail (thumbnails, drag reorder, section rows)All five bindingsPartlyKeep native. Hosts slide-content rendering and drag state, which the issue excludes.
Title bar and quick-access buttonsReact TitleBar.tsx, Vue TitleBar.vue, Angular title-bar.component.ts, Svelte TitleBar.svelte, Vanilla ui/title-bar.tsYesMigrate (#394): pptx-ui-title-bar. One order, tooltip rule and gating table; host-owned parts are slotted.
Inspector panel actionsReact about 119 files, Vue 94, Svelte 74, Vanilla 63, Angular fewer, larger componentsPer panelKeep native. Panel-by-panel owners; the generic contracts are the ribbon command, shared checkbox and select where they apply.
Compatibility toasts and collaboration status indicatorAll five bindings (the indicator is slotted into the status bar)YesKeep native; toast stacking and relay retry are host-owned. Follow-up.
Notes toolbar and notes panel buttonsReact, Vue, Angular; Svelte and Vanilla inlineYes, with divergent behaviourMigrated in #395: pptx-ui-notes-toolbar; see the Notes toolbar section below. The collapse header and editor stay native.

Status bar (first batch) ​

pptx-ui-status-bar is one controlled shared view for the bottom row: the "Slide n of m" counter, the language label, the save indicator, the Notes toggle, the Normal, Slide Sorter and Slide Show buttons, and the zoom cluster (zoom out, a percent readout that fits to window, zoom in). Hosts supply a StatusBarViewState (translated through the host translator) and route one typed status-request intent per activation to their native handlers. Notes expansion, view switching, presentation, the slide sorter and zoom stay native in each binding. A collaboration indicator is slotted through the named collaboration slot. resolveStatusBarSave is the one save-indicator rule (autosave state, then the dirty flag) and statusBarViewMode maps a viewer mode to the pressed button. The property and event contract is in src/ui/src/pptx/web-components/README.md.

Why this is not a ribbon command: the bar is one row with live readouts, a slotted indicator and clusters whose visibility depends on three host actions (zoom, notes and fullscreen in hiddenActions). Per-button ribbon commands would leave the gating and layout duplicated five times.

Behaviour changed so all five bindings now agree:

  • The Notes, Normal, Slide Sorter and Slide Show buttons expose aria-pressed in every binding. React, Vue and Angular previously had no pressed state, and Vanilla had it only on Notes.
  • The percent readout is named by its percentage, then "Zoom to fit" ("100%, Zoom to fit"), for assistive technology in all five. React, Vue and Angular exposed only a tooltip, so the visible 100% was the whole accessible name.
  • The save text uses one shared rule, including "Saved just now / n minutes ago". Svelte never showed the saved text, and Vanilla still shows its pushed label.
  • React reads the viewer mode for Normal and Slide Show; Svelte and Angular also press Slide Sorter while the overlay is open. Vanilla does not track the sorter overlay (unchanged).
  • Buttons are at least 24px square and grow to 44px on coarse pointers; the row keeps the shared 29px minimum height. Forced colors use system colors.
  • React's zoom out and zoom in buttons were individually optional; they now show whenever the zoom cluster shows, and a missing callback is a no-op. The viewer always supplies all three.
  • Up to 767px the element hides the language and save text. React, Vue and Angular omit the whole bar on phones, and Svelte and Vanilla hide the host with CSS; those remain host-owned and unchanged.

e2e/pptx/status-bar-migration.spec.ts covers the counter, names, pressed state, the zoom effect on the stage, keyboard activation, the slide sorter, panel customization, touch targets, theme tokens and forced colors on all five bindings. chrome-shell-parity.spec.ts now measures the bar through its shadow root. Adapter unit tests cover state mapping, intent routing, gating, slot projection and callback replacement for each binding.

Not migrated, and to be split into owned follow-up issues before #386 closes: read-only banner, paste options toolbar, dialog footers with a shared dialog shell, presentation toolbars and compatibility toasts. This is why the issue stays open.

Control primitives and tokens (#342) ​

The original observations (doubled search border, uneven File navigation, native select popups, mismatched checkbox accents) were fixed per surface in #346 to #349. This pass makes that result structural: one shared primitive per control kind, all reading one set of design tokens, with a cross-binding check that fails when any surface drifts.

Tokens live in src/ui/src/pptx/web-components/control-tokens.ts and are read through tok(name), which emits var(--pptx-..., <default>). Defaults resolve where they are used, so viewer-root themes still reach them. Any token can be overridden by the host or a theme.

GroupTokens
Field--pptx-field-border, -border-focus, -bg, -fg, -placeholder, -radius, -height (28px), -height-lg (40px), -padding-x
Focus ring--pptx-focus-ring-color, -width (2px), -offset (2px)
Density--pptx-space-1..4 (4, 8, 12, 16px), --pptx-row-height (28px), --pptx-row-height-nav (40px), --pptx-touch-target (44px)
Checkbox--pptx-checkbox-size (16px), -size-touch (22px), -radius, -border, -bg, -accent (the theme primary), -accent-fg
Radio--pptx-radio-dot-size (8px), -dot-size-touch (10px); border, background and accent come from the checkbox tokens
Switch--pptx-switch-width (32px), -height (16px), -track, -track-on (the theme primary), -thumb, -knob-size, -knob-offset, -knob-travel
KindPrimitiveWhere native stays
Searchpptx-ui-searchNone. Title bar (28px) and File recent files (40px) are the two variants of one field.
Selectpptx-ui-selectNone. Options, the Properties inspector, every dialog (Print, Custom Shows, Hyperlink, Document Properties, Set Up Show, Date/Time field, Header and Footer) and the ribbon (animation timeline, Insert pickers, Draw width, Transitions sound) use the app-owned listbox in all five bindings.
Checkboxpptx-ui-checkboxNone. Every dialog and panel checkbox is the primitive.
Radiopptx-ui-radioNone. Every native radio input in the five bindings (Set Up Show, Show Slides, Print settings, Paste Special, Options language) is the primitive. The theme gallery and language rows in the Angular Options panes are role="radio" buttons with their own preview art, not native inputs.
Switchpptx-ui-switchNone. The title-bar AutoSave toggle is the primitive; it overrides the switch tokens to keep the 28 by 14px track the title-bar metrics own. No other switch-like toggle exists in the five bindings.

pptx-ui-select is a combobox/listbox with a popup placed against the trigger, arrow, Home, End, PageUp, PageDown (eight options a page), typeahead, Enter, Space, Escape and Tab behaviour, aria-activedescendant, 44px triggers on coarse pointers and forced-colors styles. Escape while its popup is open closes only the popup: modal dialogs (Svelte, Angular) used to close with it, which activateModalFocus now avoids.

Drift the new checks found and fixed: Vanilla's title-bar search was 24px with a different background (every other binding is 28px) and, with Vanilla's File search, showed no placeholder because the primitive had no placeholder property; the Angular Options checkbox and the Angular, Svelte and Vanilla Options panes sized their checkboxes 15px instead of 16px.

Evidence: /assets/ui-migration/primitives-before/ and /assets/ui-migration/primitives-after/, named <binding>-titlebar, -file-menu, -options and -inspector. The unit checks are control-primitives.test.ts (token coverage, search, checkbox and select states) and modal-focus.test.ts; the browser contract is e2e/pptx/ui-primitives-consistency.spec.ts, run in all five bindings alongside the existing search-field-focus, backstage-nav-spacing and web-controls specs.

Dialog and panel controls ​

Every native <select> and <input type="checkbox"> in the five bindings now is pptx-ui-select or pptx-ui-checkbox, through the same thin adapters the inspector already used (React WebSelect/WebCheckbox, Vue/Angular/Svelte custom-element tags, Vanilla createInspectorSelect/createInspectorCheckbox). Values, change events, ids, labels, accessible names, data-testid hooks and keyboard behaviour are unchanged; selects that had no accessible name gained one.

SurfaceConverted
Print (dialog and settings panel)Print what, Slides per page, Range, Orientation, Colour selects; frame-slides and header checkboxes
Custom Shows (dialog, ribbon picker)Active show select, per-slide checkboxes
HyperlinkAction select
Document Properties (custom tab)Property type and Yes/No value selects
Set Up Show / Show Slides / Show OptionsCustom show select; loop, narration, animation and subtitle checkboxes
Date/Time field dialogFormat select
Header and Footer, Font Embedding, FindAll checkboxes
Options ribbon pane, chart quick actionsAll checkboxes
Properties inspector panelsRemaining chart, effects, media, table, text, transition, theme-override and background checkboxes
Animation timeline (Svelte, Vanilla)Trigger, shape, bookmark, direction, sequence, curve and repeat selects
Shared ribbon viewsInsert Shape/Chart pickers, Draw width presets, Transitions Sound and advance checkboxes, Animations Start

Kept native: nothing. The font-name and size pickers already use the shared select with installed-font previews, and no file-type picker is a <select>.

Select also gained PageUp and PageDown (eight options a page, clamped to the nearest enabled option), and no longer rebuilds an open popup when a host re-syncs the same value: React re-renders the Insert ribbon on every focus change, which replaced the option under the pointer and dropped the click.

The guard is src/ui/src/pptx/web-components/native-controls.test.ts, which scans every binding source (and the shared web components) for a native <select> or <input type="checkbox"> and fails unless the file is listed with a technical reason (the list is empty). e2e/pptx/dialog-controls.spec.ts opens Print, Hyperlink, Set Up Show, Custom Shows and Document Properties in every binding and fails if the page shows either native control; e2e/pptx/ui-primitives-consistency.spec.ts covers the PageUp/PageDown behaviour.

Before and after captures, per binding, are in /assets/ui-migration/dialog-controls-before/ and /assets/ui-migration/dialog-controls-after/, named <binding>-<dialog>. The before set was taken on bf656f3f2 and misses the dialogs a binding could not open from the same steps then.

Still open under #386, not here: dialog footers, menus, toasts, banners and toolbars.

Radio buttons and the AutoSave switch ​

pptx-ui-radio replaces every native <input type="radio">: Set Up Show (show type, show slides, advance), Show Slides, Print settings (print what, slide range, orientation, colour mode; the visually hidden radios inside the card labels), Paste Special and the Vanilla Options language list. Adapters are thin in each binding (React WebRadio, Vue, Angular and Svelte custom-element tags, Vanilla createInspectorRadio and appendRadioControl). Names, values and change behaviour are unchanged; Vue's v-model on Paste Special became a :checked plus @change pair, and Vanilla's "All slides" and advance rows, which only pretended to be radios by setting type on a checkbox, are real radio groups now.

Roving tabindex with arrows, Home and End and the single tab stop per group are unit-tested in control-primitives.test.ts and checked in all five bindings by e2e/pptx/dialog-controls.spec.ts (Set Up Show). ui-primitives-consistency asserts the 16px size, round shape and focus ring, including forced colours.

pptx-ui-switch is the AutoSave toggle in pptx-ui-title-bar. It keeps the accessible name "Toggle AutoSave", aria-checked, Space and Enter, the tooltip and the inert disabled state when the host forbids AutoSave. The title bar stays controlled: after the change it restores the host's state, so a refusal never leaves the knob flipped. The bar's own CSS no longer draws a switch; it sets --pptx-switch-width, -height, -knob-* and -track from the shared title-bar metrics, so the track is still 28 by 14px with a 10px knob, and the 44px hit area on coarse pointers lives in the primitive. chrome-shell-parity reads the knob from the switch's shadow root. title-bar-migration gained a Space/Enter spec.

Before and after captures: /assets/ui-migration/radio-switch-before/ (taken on 0e4bacffd, native radios and the title-bar button) and /assets/ui-migration/radio-switch-after/ (<binding>-radios and <binding>-titlebar).

What #342 delivered ​

One primitive per control kind: pptx-ui-search, pptx-ui-select, pptx-ui-checkbox, pptx-ui-radio and pptx-ui-switch, all reading the tokens in control-tokens.ts for size, accent, focus ring and touch target. Every native select, checkbox and radio in the five bindings is converted, and native-controls.test.ts fails on any new one (empty allow-list). Browser contracts (dialog-controls, ui-primitives-consistency, title-bar-migration, chrome-shell-parity) run in every binding. Not claimed: the Angular Options theme and language galleries remain role="radio" buttons with preview art.

Notes toolbar (#395) ​

pptx-ui-notes-toolbar is one controlled shared view for the speaker-notes formatting row: Bold, Italic, Underline, Strikethrough, Bullet list, Numbered list, Increase indent, Decrease indent, Insert link, Print notes and the Rich/Plain editor switch. It owns the buttons, their order, icons, labels, enabled state, toolbar semantics with roving focus, touch targets, forced colors and the hyperlink popover. Hosts keep the contenteditable editor, the paragraph and inline edit commands, history and persistence, printing and the collapse header, and route one typed notes-request intent per activation. The property and event contract is in src/ui/src/pptx/web-components/README.md.

Recorded differences before the change ​

AreaReactVueAngularSvelteVanilla
Label keyspptx.notes.*pptx.notesToolbar.*pptx.notes.*Mixed pptx.notes.* and pptx.notesToolbar.*pptx.notes.*
OrderIndent, OutdentIndent, OutdentIndent, OutdentOutdent, IndentIndent, Outdent
Plain modeFormatting buttons stay and do nothingSameSameAll formatting buttons hiddenFormatting buttons stay and act on a hidden editor
Mode switch label"Plain editor" / "Rich editor""Plain" / "Rich""Plain editor" / "Rich editor""Plain" / "Rich""Plain editor" / "Rich editor" with aria-pressed
Print gatingOnly when the host passes all slidesAlwaysAlwaysAlwaysAlways
Print routeNotesPrintDialogHidden iframeHidden iframeHidden iframeHidden iframe
Toolbar gatingcanEditPanel only mounts when the host can editSame as VueHidden unless an onupdate handler existsHidden unless editable
Link UIIn-toolbar popoverIn-toolbar popover (own key set)In-toolbar popover (own key set)Two window.prompt callsTwo window.prompt calls
IconsLucide componentsLucide componentsInline SVGLucide componentsText glyphs
Toolbar semanticsPlain divPlain divrole="toolbar", no roving focusaria-label without a rolePlain div
Touch targetsAbout 24pxAbout 24pxAbout 24px24px24px
Default surfaceRich only when the slide has notes; the choice was reset on every slide changeRich on desktop, plain on mobile; keptSame as VueSame as VueSame as Vue
Collapse and resizeHeader button, panelHeight and a swipe-down mobile sheetHeader button with chevron, MobileSheetHeader button with chevron, mobile sheetHeader button without chevronHeader button with a text chevron
Editor integrationReact state plus an effect that re-seeds the editor; paragraph edits use hook stateShared notes-editor helpers, DOM re-seededSame as VueSame as VueSame, but paragraph edits used the last blur state

Canonical set and decisions ​

  • One key set, pptx.notes.* (Increase indent, Decrease indent, Bullet list, Plain editor, Rich editor, Insert link, Print notes) plus the existing pptx.notesToolbar.ariaLabel for the toolbar name and pptx.common.cancel. The Vue-only pptx.notesToolbar.* button keys are no longer read.
  • One order: character formats, lists, Increase indent then Decrease indent, link, print, then the editor switch at the end of the row. Svelte followed the other order and now matches the other four.
  • Formatting follows the editor: in the plain editor the formatting buttons and the link button are disabled, not hidden (Svelte used to hide them) and no longer silently inert. Print and the editor switch stay enabled. With no slide every button is disabled. The row is hidden when the host cannot edit.
  • Print is shown whenever a slide exists. React keeps its all-slides dialog for the Print action; the other four keep printing the active slide through a hidden iframe, so the intent is the same but the output is not.
  • The editor switch names the editor it switches to ("Plain editor" while rich is active). It is a plain button with no aria-pressed, so Vanilla's pressed state is gone.
  • The link popover moves into the element, so Svelte and Vanilla stop using window.prompt. It is a non-modal dialog that places itself above the row (or below when there is no room), focuses the URL, keeps the selected text as the display text, refuses an empty URL, closes on Escape, Cancel or an outside press and returns focus to the Insert link button. Submitting restores the editor selection and emits one link intent with a normalised URL.
  • Buttons prevent the default on mousedown so the editor selection survives a pointer press. Hosts focus the editor before running a command so the keyboard path works too.
  • React's default surface is rich on desktop like the other bindings, and the choice is no longer reset by changing slide. Vanilla's list and indent commands read the live editor first, so text typed since the last blur is no longer lost.
  • Rich formatting now persists in every binding. Vue and Angular committed the plain text only, so bold, lists and indents were lost on the next slide change and on save; they now commit the text with its segments in one history entry (Angular adds a notesCommit output next to update), flush on blur so a slide change cannot take the edit with it, and a plain edit or a cleared note drops the stale segments. React no longer keeps the previous slide's draft when you return to a slide whose notes equal the last text it saved.
  • Icons are one inline SVG set. The row is a role="toolbar" with a single tab stop; Left, Right, Home and End move between enabled buttons, and those keys do not reach the slide shortcuts. Targets are 28px, 44px on coarse pointers, and forced colors use system colors.

Not changed on purpose: the collapse header, panelHeight and the mobile sheet (React), the contenteditable editor and its history, the print dialog and iframe routes, and the per-binding mobile placement. Each binding keeps its public props, callbacks and test classes (.pptx-vue-notes-toolbar, .pptxv-notes-toolbar, .pptx-svelte-notes-toolbar, #slide-notes-content).

BindingBeforeAfter
ReactBeforeAfter
VueBeforeAfter
AngularBeforeAfter
SvelteBeforeAfter
VanillaBeforeAfter

e2e/pptx/notes-toolbar-migration.spec.ts covers the button order and names, real Bold, bullet and indent edits that survive a slide change, the link popover with no window.prompt, Escape and empty-URL handling, roving focus, the disabled plain mode, Print, theme tokens, forced colors and 44px touch targets on all five bindings; mobile-notes.spec.ts checks the default plain surface and its touch targets. Adapter unit tests cover state mapping, intent routing, gating and callback replacement in each binding.

Slide rail, section and sorter actions (#397) ​

The rail itself (thumbnail rendering, virtualisation, drag state) stays native. What was decided is which actions the rail, a section header and a sorter tile expose, because the audit found a different product behind each in every binding. Evidence recorded before the change:

  • Rail persistent row. React, Svelte and Vanilla: an "Add Slide" footer. Vue: the footer on flat decks only (none on sectioned decks), and SlidesPaneControls.vue (Add, Duplicate, Delete) existed but was never mounted. Angular: the footer plus a hover toolbar on every thumbnail (Duplicate, Delete, Move up, Move down) and no drag reorder.
  • Section header. React: a popup menu (pptx.sections.*) with inline rename. Vue: hover buttons (pptx.sectionList.*), a "+ Add section" button per group and inline rename. Angular, Svelte, Vanilla: hover buttons and a window.prompt rename.
  • Sorter tile menu. React: Copy, Paste (with a clipboard), Duplicate, Hide and Show, Delete, with a count suffix. Vue, Angular, Svelte: Duplicate, Hide/Show, Delete (pptx.slideMenu.*). Vanilla: no menu, inline Duplicate, Hide/Show and Delete buttons per card.
  • Thumbnail menu on a sectioned rail. Present in React, Angular, Svelte and Vanilla; absent in Vue (its section list had no right-click menu and no multi-select).

Decision ​

PowerPoint is the reference: its slide pane has no per-thumbnail buttons and no button strip, and its section header and sorter are right-click menus. So:

  • Rail. One persistent action, Add Slide (pptx.sections.addSlide), in a pinned footer, in flat and sectioned decks. Everything else on a slide is on the thumbnail right-click menu (already shared in slide-pane-context-menu.ts) and the keyboard (Enter inserts after, Delete). Reordering is drag and drop in all five bindings (Angular gained it; its per-thumbnail Move up/down buttons are gone). Vue's sectioned rail gains the footer, the thumbnail menu and Ctrl/Shift multi-select, and the unmounted SlidesPaneControls.vue is deleted.
  • Section header. A role="menu" popup on right-click or the keyboard context-menu key with Rename, Delete, Move Up, Move Down and Add Section After (React's list, which matches PowerPoint). Move Up is disabled on the first section and Move Down on the last. Rename is an inline text field in the header (Enter or blur commits a non-empty name, Escape cancels) in every binding; no binding opens window.prompt. Add Section After starts the new section at the slide following the section's last slide, clamped to the last slide. The hover buttons, Vue's per-group "+ Add section" button and the pptx.sectionList.* keys are no longer used by the rail; the label keys are pptx.sections.* everywhere.
  • Sorter tile. A role="menu" popup on right-click with Copy, Paste (only after a Copy), Duplicate, Hide or Show, Delete. Hide and Show are one toggle entry like the rail menu (Show only when every selected slide is hidden); Delete is disabled when it would remove every slide; a multi-selection appends " (n)" to Copy, Duplicate, Hide/Show and Delete. The keys are pptx.slideSorter.contextMenu.*. Vanilla's inline per-card buttons are removed. Copy and Paste also answer Ctrl+C and Ctrl+V (the shared sorter keymap).

Shared logic lives in ooxml-ui/pptx: buildSectionContextMenuEntries and sectionAddAfterSlideIndex (section-context-menu.ts), buildSlideSorterContextMenuEntries, slideSorterContextMenuLabel, slideSorterPasteIndexes and SLIDE_RAIL_FOOTER_ACTIONS (slide-sorter-context-menu.ts). Each binding renders the entries natively (React and Vue reuse their menu components, Angular has pptx-section-context-menu, Svelte SectionContextMenu.svelte and SlideSorterContextMenu.svelte, Vanilla section-context-menu.ts and slide-sorter-context-menu.ts); the menus join the shared context-menu element when that lands.

Sorter selection and clipboard state now live in slide-sorter-state.ts (#402). All five adapters support Ctrl/Cmd toggles, Shift ranges, select-all, selection counts in the menu, multi-slide copy/paste, and thumbnail zoom. Click selects; double-click opens a slide. Escape collapses a multi-selection before closing. Paste duplicates the copied source slides in deck order, matching the existing React behavior. e2e/pptx/slide-sorter-selection.spec.ts runs this contract against each binding. Section colours, collapse and drag state stay native.

e2e/pptx/slide-rail-menus-parity.spec.ts drives all five bindings through the Add Slide footer (flat and sectioned), the section menu (commands, role, no inline buttons), inline rename without a prompt, Move Up/Down gating and reordering, and the sorter menu (commands, Copy then Paste, Hide then Show).

Inspector reset and clear actions (#398) ​

The inspector panels stay native (each commits through its own editor and history API). What the audit found was a parity gap in six actions, recorded by translation key before the change: Reset Picture (image.resetImage) was missing its label and gating contract in Svelte (hard-coded English) and was gated three different ways elsewhere; Reset Crop was missing in Svelte and Vanilla; Reset trim in Angular, Svelte and Vanilla; Clear series colour in Svelte and Vanilla; Clear Background in the Svelte and Vanilla inspectors (both had it only on the Format Background ribbon dock).

ooxml-ui/pptx now owns the contract in inspector-reset-actions.ts: the label keys, the gating (imageResetState, cropResetState, mediaTrimResetState, seriesColorClearState, slideBackgroundClearState) and the exact patch each action applies (imageResetPatch, cropResetPatch, mediaTrimResetPatch, slideBackgroundClearPatch). Canonical behaviour, which changed some bindings:

  • Reset Picture is shown for a picture and enabled only while the host can edit and an effect or a crop-to-shape override exists. It clears imageEffects and cropShape and keeps the crop (PowerPoint keeps it; Reset Crop owns that). Vue, Angular, Svelte and Vanilla used to clear the crop too; Vue hid the button until dirty and React never disabled it.
  • Reset Crop is shown for a picture, enabled when editable and the picture is not noCrop locked, and zeroes the four insets. Added to Svelte and Vanilla.
  • Reset trim is shown only for editable media that carries a trim. Added to Angular, Svelte and Vanilla.
  • Clear series colour is shown per series only while editable and the series has its own colour. Added to Svelte and Vanilla (which has one series selector, so one button for the selected series). Every binding now exposes the action by an accessible name (React, Vue and Angular had only a title or a glyph). In Vanilla only the colour control writes a series colour now; editing the trendline or error bars used to stamp the swatch colour onto the series.
  • Clear Background is shown when the slide has a colour, picture, gradient or pattern, enabled when editable, and clears all four (React, Vue and Angular skipped the pattern). Svelte and Vanilla gain a Background card in the no-selection inspector with the colour and this action, and the Svelte ribbon dock's clear button now says "Clear Background" instead of "Default".
  • Each action is one undo step.

The labels are the existing keys, already translated in German, Spanish, French and Simplified Chinese; no new key was needed. Svelte's Replace and Reset Picture labels now use pptx.image.replaceImage and pptx.image.resetImage.

e2e/pptx/inspector-reset-actions.spec.ts (fixture inspector-reset-actions.pptx) checks the five actions, their gating and undo on all five bindings.

Title bar and quick access (#394) ​

pptx-ui-title-bar is one controlled shared view for the top chrome row and the optional below-the-ribbon strip. Hosts supply a TitleBarViewState (built with buildTitleBarState) and route typed toggle-autosave, save, undo, redo, quick-command and command-search events to their native handlers. The collaboration indicator and account parts are host-owned and slotted through the named collaboration and account slots. The property, event and keyboard contract is in src/ui/src/pptx/web-components/README.md.

What the five bindings did before, as audited in this change:

AspectReactVueAngularSvelteVanilla
Layout and tokensTailwind TITLE_BAR_CLASSESTailwind TITLE_BAR_CLASSESTailwind TITLE_BAR_CLASSESScoped CSS from titleBarStyleAttr; name max 200pxCSS-in-TS from TITLE_BAR_METRICS; name max 180px, search 320px
Buttons presentSave only when onSave is passed; Undo, Redo, extrasSame as ReactSave always; Undo, Redo, extrasSave always; hand-drawn Save, Undo, Redo glyphsEvery configured id in configured order, so no fixed trio
Extras and tooltipsBare label, ignores showCommandLabelsScreenTip resolverScreenTip resolver; spellCheck drawn as a search glyphBare label; unknown icon falls back to PlayScreenTip resolver; spellCheck had no glyph; Undo no action text
AutoSave switchAlways enabledAlways enabledAlways enabledAlways enabled; disabled-by-host status keys unreachableInert when the host forbids autosave (only binding)
Search field gatemode is edit or mastermode is edit or masterEditableEditableEditable
Search resultsShared filter, cap 8, category, "find in slides" rowSame as ReactOwn component, same rowsSame as React, 120ms blur graceLocal three-item list; no category, cap or fallback row
User and presence areaNoneNoneNoneNoneAI toggle appended straight into the row
Collaboration slotNone (the indicator lives in the status bar)NoneNoneNoneNone
Window controlsNone (the viewer embeds in a host page; hosts own the window)NoneNoneNoneNone
Below the ribbonTitleBarQuickExtrasTitleBarQuickAccessQuickAccessStripComponentQuickAccessToolbar.svelteRelocates the live strip node
Second separatorWhen the strip is onWhen the strip is onAlwaysWhen the strip is onHidden while the strip is docked below
Narrow widthsHidden under 768px; no wrapping or overflow handlingSameSameAlso hidden on landscape phonesAlso hidden on landscape phones

Decisions now shared by all five:

  • One order: Save, Undo, Redo, then the configured extras in File > Options order.
  • One tooltip rule: aria-label is the label, title is screenTip(...), and Undo and Redo name the pending action when known. Extras honour showCommandLabels.
  • One gating table: AutoSave, strip, status and search show only while editing (edit or master mode with an editable deck). showSave, showUndo and showRedo hide single buttons. The second separator appears only when the strip has buttons.
  • One icon set for every catalog command, including spellCheck, drawn from the shared trusted paths.
  • One search dropdown: shared filter, at most eight rows, a category column, and a "Find in Slides" row where the host can search content. Arrow keys move through the results.
  • The strip is a named toolbar with roving focus. Buttons are 44px on touch, and forced colors use system colors. The row hides under 768px in every binding.

Behaviour that changed:

  • React and Vue previously showed the search box in any edit-mode view; it now needs an editable deck, as in the other three.
  • The AutoSave switch is inert (disabled, with the "disabled by host" tooltip) in all five bindings when the host forbids autosave; before, only Vanilla did this.
  • Vanilla now always shows Save, Undo and Redo first; a configured list that omitted them no longer hides them, which matches the other four. Its search box is now the shared one, lists the shared command catalogue, runs every id through the ribbon's own surfaces (SmartArt, Equation, Browse Themes and Slide Size open the matching ribbon control) and offers the "Find in Slides" row, which toggles the Find & Replace panel.
  • The AI toggle is slotted into the account slot, and Vanilla's search box now shows its placeholder (it assigned a property the field never read, so it rendered empty).
  • Hiding the quickAccessToolbar panel now removes Save, Undo and Redo too in React; before, only the extras were hidden there.

All five bindings now pass the pending Undo and Redo action to the tooltip (Vue, Svelte and Vanilla gained the plumbing; no editing action in any binding records a label yet, so today every tooltip reads plain "Undo" and "Redo"). Svelte also passes the autosave disabled reason, so a host autosave: false or a missing file path shows the same status text everywhere. review.language has no action in any binding.

e2e/pptx/title-bar-migration.spec.ts covers the names, order, AutoSave switch, roving focus and tab order, search results, panel customization, narrow widths, theme tokens, touch targets and forced colors on all five bindings. chrome-shell-parity.spec.ts now measures the bar through its shadow root and compares the command-search rows across bindings. Adapter unit tests cover state mapping, event routing, gating, slots and the below-ribbon placement for each binding. Before and after screenshots are in docs/public/assets/ui-migration/title-bar-before and title-bar-after.

Context menus (#393) ​

pptx-ui-context-menu is one controlled shared element behind the element, empty-canvas, slide-thumbnail and slide-show menus in all five bindings (and the Vanilla read-only AI menu). Each binding keeps its entry lists (buildContextMenuEntries, buildCanvasContextMenuEntries, buildSlidePaneContextMenuEntries, getPresentationContextMenuSections), host customization, gating and command dispatch (clipboard, table, crop, merge, inspector focus); an adapter maps those entries to rows and routes the typed menu-request { id } and menu-close events. The property and event contract is in src/ui/src/pptx/web-components/README.md. The sorter and section menus are different in each binding (see the section and sorter parity issue) and stay native; Vue's sorter reuses the generic ContextMenu.vue and so also gets the shared look and keyboard model.

Evidence read from the five bindings before the change:

AspectReactVueAngularSvelteVanilla
Element z-index120 (backdrop 119)1209000120 (backdrop 119)1150
Slide-show z1300 (backdrop 1299)120, under the 2147483000 fullscreen overlay900096 (scrim 95)65
Slide-show clampNoneShared with the element menuNoneNoneShared two-sided clamp
Outside dismissalFull-screen backdrop that swallows the clickCapture listeners on windowdocument:pointerdownFull-screen backdrop that eats clicksCapture pointerdown on document
Slide-pane hooksMarker and nameNo data-pptx-slide-pane-context-menu, no nameMarker and nameMarker and nameMarker and name
Delete tintYesElement menu lost itYesYesNot on the thumbnail menu
Slide-show nameNoneNoneNoneNoneNone
Group headingsPointer and Screen headingsNoneNoneNoneNone
Arrow keys, type-ahead, roving focusNoneNoneNoneNoneNone

Real defects this exposed and fixed:

  • Vue's slide-show menu was teleported to <body> at z-index 120 while the show is a fullscreen overlay, so the menu rendered behind the slides and could not be clicked (vue-presentation.png in the before directory is a blank slide fragment). The shared menu renders in place inside the fullscreen subtree above every overlay layer.
  • Vue's slide-thumbnail menu had no accessible name and none of the data-pptx-slide-pane-context-menu hook the other four bindings emit; its element menu dropped the danger tint on Delete.
  • The slide-show menu had no accessible name in any binding, and only React drew its Pointer Options and Screen headings. All five now share both, as groups.
  • Escape inside a slide show closes only the open menu; it is consumed before the show's own key handling.

Behaviour changed so all five now agree:

  • Rows are menuitem or menuitemcheckbox; rules are separator; the surface is a named role="menu" inside the element's open shadow root. The host element carries the data-pptx-* hooks, so existing selectors on the host keep working.
  • Opening focuses the first enabled row. Arrow keys wrap, Home and End jump, type-ahead matches label prefixes and repeated letters cycle, and disabled rows are skipped. Hovering a row moves the roving focus to it. Enter and Space activate. Escape, an outside press and Tab dismiss; focus returns to the opener unless the command moved it.
  • Outside presses no longer swallow the click (React and Svelte did): the menu closes and the press continues, as Vue, Angular and Vanilla already did.
  • Every menu is clamped into the window and scrolls when taller than it. Slide-show menus were unclamped in React, Angular and Svelte.
  • One stacking contract: 9000 for the editor and 2147483001 for the slide show.
  • Rows are 28px, growing to 44px on coarse pointers. Colours come from the shared theme tokens; forced colors use system colors with no shadow.
  • The Vanilla read-only AI menu now uses the same element, so it loses its two icons. No binding has submenus, so the model has none; Vanilla's canvas and thumbnail "Layout" lists are second shared menus, not nested ones.

Native code kept: the entry lists and host customization, context-menu-dispatch, editor-context-menu-dispatch, element-context-menu-commands and the equivalent dispatch in each binding, hit-testing and selection, and the Layout galleries that React, Vue, Angular and Svelte open from "Layout". The Edit Points node menu is anchored inside each binding's edit-points overlay rather than at the pointer and is not part of this inventory.

Comparable screenshots use the sample deck at 1440 x 900, cropped around the menu: /assets/ui-migration/context-menu/before/<binding>-<menu>.png and /after/ for element, canvas, slide-rail and presentation (for example react-element.png).

e2e/pptx/context-menu-migration.spec.ts runs once per binding and covers markers and roles, the first-row focus, arrows, Home, End and type-ahead, Enter activation, Escape and outside dismissal with clean reopen, the canvas toggles, the thumbnail menu, the slide-show menu above the overlay with grouped sections, clamping at the bottom-right corner, theme tokens, forced colors and 44px touch rows. The existing context-menu-parity, canvas-context-menu-parity, slides-pane-parity, host-context-menu-commands and edit-points specs read the menus through the shared element's shadow root (e2e/pptx/support/context-menu.ts). Shared unit tests cover the element contract, the row mappers and each binding's adapter.

Non-ribbon families (#386) ​

The first pass at #386 classified twelve non-ribbon families from the file inventory and migrated only the status bar. This pass read the sources of all five bindings for every family before deciding. A family migrated when its markup, gating and callbacks were the same across the bindings, or differed only in drift that could be normalised without changing what a user can do (the same rule the status bar used). A family stayed native only with file evidence that the bindings implement different features, and each of those has a focused follow-up issue. Ribbon commands are out of scope (#363); the File backstage belongs to #342.

FamilyWhat the five sources showDecision
Status barFive hand-built copies of the counter, save state, notes toggle, view buttons and zoom cluster.Migrated in #390 as pptx-ui-status-bar.
Read-only bannerSame message, Edit anyway, Dismiss and password form in all five (ReadOnlyBanner.tsx, ReadOnlyBanner.vue, readonly-banner.component.ts, ReadOnlyBanner.svelte, ui/read-only-banner.ts). Drift: React and Vanilla had no "Read-only recommended" title, Vanilla used a close glyph, the role was alert in one binding and status in three, and only React focused the password input.Migrated: pptx-ui-read-only-banner.
Paste options toolbarSame four-format strip, canvas-anchored measurement and window-level dismissal in all five (PasteOptionsToolbar.tsx/.vue/.svelte, paste-options-toolbar.component.ts, ui/paste-options-toolbar.ts). Drift: a press on the strip could dismiss it before its click landed, and choosing a format closed it in only three.Migrated: pptx-ui-paste-options. The host still measures the pasted element.
Compatibility toastsSame state (toasts, insets) and callbacks (dismiss one, dismiss all) in all five. Drift: Vue and Svelte capped the stack at five with a "+N" count, the other three showed everything, and markup and icons differed.Migrated: pptx-ui-compat-toasts, which caps at five and positions itself with compatToastStackStyle.
Dialog footersEvery dialog hand-builds its footer inside its own modal shell (React useModalFocus, Vue ModalDialog.vue, Angular modal-dialog.component.ts, Svelte collab/components/ModalDialog.svelte, Vanilla parity-dialog-shell.ts). The button rows are the same shape in all five.Migrated as pptx-ui-dialog-footer (not a shell), adopted by every dialog with a button row (#396, see the per-dialog table below).
Mobile bottom bar and top toolbarSame five slots and disabled rule (buildBarActions) and the same toolbar order (MobileBottomBar.tsx/.vue, mobile-bottom-bar.component.ts, MobileActionSheets.svelte, ui/mobile-action-sheets.ts; MobileToolbar.tsx/.vue, mobile-toolbar.component.ts, MobileChrome.svelte, ui/mobile-toolbar.ts). Drift: label keys, the comment badge, the open-sheet pill, edit-only gating, AI and Share.Migrated: pptx-ui-mobile-bar and pptx-ui-mobile-toolbar.
Presentation toolbar and presenter console stripBoth already render from shared inventories (PRESENT_TOOLBAR_CONTROLS, PRESENTER_CONSOLE_CONTROLS) with identical ids, order and label keys, but each binding re-implemented the markup, the palettes, the timer and the slot-state rule. Drift: right-click palettes only in React and Vue, aria-pressed only in Svelte and Vanilla, Zoom in active only in React, Vue and Angular.Migrated: pptx-ui-present-toolbar and pptx-ui-presenter-console. Auto-hide, annotations and console snapshot patching stay native.
Context menusEntry lists are already shared; the rendering is hand-built per menu in each binding (React ContextMenu.tsx, Vue ContextMenu.vue, Angular editor-context-menu.component.ts, Svelte ElementContextMenu.svelte, Vanilla ui/element-context-menu.ts, plus canvas, thumbnail and presentation menus). No binding implements arrow keys, typeahead or nesting.Not migrated in this change (about 20 adapters and 40 test files). Concrete scope in #393.
Title bar and quick accessSame slot order, and pptx-ui-search is already shared. Real drift: Vanilla renders quick-access commands in catalog order while the others hardcode Save, Undo and Redo first; tooltips, icons, Save gating and search gating differ; Svelte never passes disabledReason.Keep native until the drift is decided; the list and the plan are in #394.
Notes toolbar and panel buttonsSame button set, different contracts: Vue uses another i18n namespace, Svelte hides formatting in plain mode and orders Indent differently, the link UI is a popover in three bindings and window.prompt in two, and Print is a dialog in React and an iframe elsewhere.Keep native until the contracts are unified; plan in #395.
Slide rail actionsDifferent features: React has an Add Slide footer, Vue a Duplicate/Add/Delete row, Angular per-thumbnail move buttons and Svelte section-header buttons; the section menu is a popup only in React; the sorter menu has five entries in React, three in Vue, Angular and Svelte, and none in Vanilla. The rest of the rail is virtualisation, drag reorder and slide-content rendering, which #386 excludes.Keep native. A product decision is needed first (#397).
Inspector panel actionsAbout 170 React, 144 Vue, 124 Svelte and 96 Vanilla panel files that each commit through binding-specific editor and history APIs with debounced inputs; the leaf controls are already the shared select and checkbox. Svelte and Vanilla also lack several Reset and Clear actions the others have (image.resetCrop, media.resetTrim, chart.clearSeriesColor, slideBackground.clearBackground).Keep native; the parity gaps are tracked in #398.
File backstageOwned by the #342 primitives work.Not touched here.

What the new elements own ​

The eight new elements are in src/ui/src/pptx/web-components/; their typed state, events and behaviour are in that directory's README. They follow the existing pattern: an open shadow root, a structured state property, bubbling composed events and no events for programmatic updates. Adapters keep each binding's public props, callbacks, ids and test hooks (pptx-readonly-*, pptx-compat-*, data-pptx-paste-options, data-pptx-present-toolbar, data-pptx-present-control, data-pptx-presenter-control).

Behaviour that changed so the five bindings now agree:

  • Read-only banner: every binding shows "Read-only recommended: message" with a lock and role="status", and focuses the password input when the prompt opens. Its session (banner hidden, Edit anyway, the password prompt and its check) is the shared read-only-session model, which drops a password check result that arrives after a new load or Cancel. Vue reads the recommendation once per load, like the others, instead of from the live custom properties, and vanilla ANDs the lock into its editable state instead of writing it into setEditable, so Edit anyway never makes a viewer the host opened read-only editable.
  • Paste options: a press inside the strip no longer dismisses it before the click lands, and choosing a format always closes it. Escape inside the strip dismisses.
  • Compatibility toasts: all five cap the stack at five with a "+N" count and always offer "Dismiss all".
  • Dialog footers: Cancel and the primary action are one component, and the signed-deck confirmation uses the warning variant everywhere. activateModalFocus now walks open shadow roots, so a trapped dialog still tabs through its footer.
  • Mobile bars: one label key set (Angular used two other keys for Insert and Format), the comment badge and open-sheet pill in every binding, edit-only slots disabled in view mode in every binding, and a tapped slot keeps its pressed colour because hover only applies on hovering devices.
  • Presentation toolbar: every toggle exposes aria-pressed, right-clicking Pen or Highlighter opens its palette in every binding, and controls grow to 44px on coarse pointers. The presenter-view toggle is omitted when a host cannot open one.
  • Presenter console: Zoom in reads active while zoomed past 100% in every binding, and one rule (presenterConsoleViewState, presenterConsoleAction) replaces five copies of the slot-state logic. The Vue and Angular helper modules that held those copies are removed.

Not shared on purpose: the show toolbar's auto-hide wrapper and annotation model, presenter snapshot patching, every dialog shell and modal focus trap, the mobile sheets, and every document mutation.

Validation ​

Typecheck, oxlint --deny-warnings and oxfmt pass on every changed file. Unit suites for shared and all five bindings pass (counts in the pull request). Adapter tests cover state mapping, intent routing, gating and callback replacement for every migrated family in every binding; shared tests cover the elements, their styles (44px targets, forced colors, tokens), the shadow-aware focus trap and the slot-state rules.

e2e/pptx/chrome-controls-migration.spec.ts runs on all five bindings and covers the read-only banner (names, password focus, wrong and correct password, 44px), the compatibility toasts (dismiss one and all, tokens, forced colors, 44px), the paste options strip (four formats, choose, dismiss by key), the dialog footer (keyboard cancel and OK, tokens, forced colors), the mobile bars (names, order, 44px, notes toggle, tokens) and the slide-show toolbar (navigation, tool pressed state, palette pick, End). present-chrome-parity, presenter-view-parity, paste-special, modify-password-*, compat-toast-clears-chrome, autosave-recovery-*, mobile-audit, mobile-notes, keyboard-shortcuts and the other show specs pass; two probes (present-chrome-parity, presenter-view-parity) now read controls through open shadow roots.

Before and after screenshots for the status bar and each migrated family are in docs/public/assets/ui-migration/non-ribbon-families/ (see its README for the decks, viewports and commits).

Dialog footers in every dialog (#396) ​

pptx-ui-dialog-footer now owns the action row of every dialog whose footer is a row of buttons, in all five bindings. The shell, backdrop, dismissal and focus trap stay with each binding; callbacks, ids and test hooks are unchanged (the data-testid hooks such as hf-apply-all ride on actions[].testId).

Additive element changes, each with a unit test: align: 'start' pins a tertiary action to the left edge, busy (disabled, aria-busy, spinner), title (tooltip) and the danger variant. The host is flex: 1 1 auto, so it fills a flex footer and the start action can sit on the left. modalFocusableElements and modalActiveElement expose the shadow-aware focus walk for the two Vanilla dialogs that keep their own Tab loop (SmartArt, Slide Templates).

Enter and Escape stay with each binding's shell: the footer is only buttons, so Enter on a focused button activates it and Escape is the shell's. No dialog has a form submit tied to a <form> or a "Don't show again" checkbox in its footer, so no slot was added.

Legend: M migrated, N kept native, - the binding has no such dialog.

DialogReactVueAngularSvelteVanillaActions (order)Notes
PrintMMMMMCancel, Print (primary, print icon)Vue and React keep the page estimate beside the footer
Set Up Slide ShowMMMMMCancel, OK
HyperlinkMMMMM[Remove link, start], Cancel, Apply or OKReact has no Remove link; Svelte labels the primary OK
Document PropertiesMMMMMCancel, Save (disabled while clean or read-only)Vue and Angular also have the smaller Properties dialog, migrated the same way
ShareMMMMMCancel or Close, Start or Join (hidden when live)The action list is rebuilt when the session state changes
BroadcastMMMMMClose, Start (hidden when live)
Equation editorMMMMMCancel, Insert or Update (disabled while empty)Vanilla keeps Ctrl+Enter, which calls the same submit
OLE editorMMMMMReplace file (start), SaveThe hidden file input stays beside the element
Insert SmartArtMMMMMCancel, Insert (disabled until a layout is picked)Vanilla's own Tab loop now uses the shadow-aware focus walk
Slide Template galleryMMMMMCancel, Insert (disabled until a tile is picked)Same Vanilla focus change
Password protectionMMMMM[Remove password, danger, start], Cancel, Set or Update
Custom ShowsMMNMMShow (start), Cancel, OKAngular keeps its own footer row. One shared createCustomShowsController drives the lists in every binding
Header and FooterMMMMMApply to All, Apply to Current (primary)hf-apply-all and hf-apply-current hooks kept
Digital signaturesM--MMClose or DoneVue and Angular show signatures in a panel, not a dialog
Font embeddingMMMMMDone (primary)
Encrypted file noticeM-M--Close
Date and Time fieldMMM--Cancel, InsertSvelte and Vanilla insert the field without a picker
Rehearse timings summaryMMMMNDiscard, Save timings (primary)Vanilla shows Save and Discard in the rehearsal HUD bar, which is a toolbar, not a dialog
Notes print previewM----Print (primary, print icon)
Export progressMMMMMCancel
Slide size rescale promptNM-N-Maximize, Ensure Fit (primary)React and Svelte render it as a compact inline card in the inspector pane, not a dialog
Paste SpecialMMMMMCancel, OKMigrated in #386
Keep AnnotationsMMMMMper promptMigrated in #386
Autosave recoveryMMMMMRestore, DiscardMigrated in #386
Signature strippedMMMMMCancel, Edit anyway (warning)Migrated in #386
File > Options (Settings)NNNNNReset all (Vanilla), Cancel, OKOwned by #342; its footer is bound to live re-labelling of the whole dialog
Find and ReplaceNNNNNFind, Replace, Replace all, CloseA docked panel of inline commands whose accessible names differ from their visible text
Format BackgroundNNNNNReset, CloseDocked panel with inline commands
Compare, Version history, Accessibility, Shortcuts, Selection, AINNNNNClose in the headerSide panels with no action row
Mobile sheets and menusNNNNNnoneBottom sheets, not dialogs; no footer

Tests: shared (chrome-controls) covers the new action fields; each binding's adapter and dialog tests find footer buttons through the open shadow root (dialog-footer.test-support); e2e/pptx/dialog-footers-migration.spec.ts opens nine dialogs in every binding and checks the footer element, the primary action last, Escape (which leaves the footer intact) and Enter on a focused Cancel. Escape itself is the shell's and is not uniform: React Print, Hyperlink, Set Up Slide Show and Document Properties, the same Svelte dialogs, and the Vanilla Document Properties and Password dialogs have no Escape handler (pre-existing, unchanged by this work, tracked as a follow-up). Before and after captures are in docs/public/assets/ui-migration/dialog-footers/.

Released under the Apache-2.0 License.