Repository navigation
Conversation
Paste reads the clipboard inside the click and takes back a copy's values object, the changed-only map or a whole toJSON() state through fromJSON, one undo step, saved and announced like any load. A value lands only where it fits the control, so a stray key, a mistyped value or a reserved path is skipped, never coerced or written onto a prototype; nothing usable shows a red cross. The parse lives in a lazy chunk, the markup toolbar gets the same button, and the gate moves to 23 KiB for the icons.
ryankiley
force-pushed
the
ryan/paste-button
branch
from
October 18, 2026 04:52
2fdb143 to
b772990
Compare
# Conflicts: # test/chunks.test.mjs
A disabled control takes nothing; a tuple must keep its length and a list of stops stay between 2 and 64; a colour must be one the browser can parse, not just one that starts like it; a key holding a literal dot pastes back from the panel's own copy; and a layout that changes nothing reports nothing pasted.
Tweakit no longer shows toasts. The copy button confirms with its icon's check alone, the presets menu with its list and the values it loads, and a markup button with no handler does nothing visible; the toast's code and CSS go, 234 B off the core download.
With the toast gone, one visually hidden status region for the page says it in words instead: values copied, nothing changed, copy failed, a preset saved or loaded. Sighted users see nothing new.
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paste reads the clipboard inside the click and takes back a copy's values object, the changed-only map or a whole toJSON() state through fromJSON, one undo step, saved and announced like any load. A value lands only where it fits the control (same type all the way down, a tuple of the same length, a colour the browser parses, one of a list's options, never a disabled control), so a stray key, a mistyped value or a reserved path is skipped rather than coerced or written onto a prototype; its icon flashes a check, or a cross when nothing fits. The parse lives in a lazy chunk, the markup toolbar gets the same button, a button control whose action isn't a function no longer throws, and the size gate moves to 23 KiB for the icons. A paste tells a screen reader what it did, through the status region #163 added.