Releases: google/playground-elements
v0.9.4
v0.9.3
v0.9.2
Changed
- Playground now executes code on the unpkg.com origin by default, meaning user
code execution is now sandboxed by default. The sandbox URL can still be
changed with thesandboxBaseUrlproperty orsandbox-base-urlattribute,
though it is highly advisable to always use a separate and unprivileged
origin.
v0.9.1
v0.9.0
Changed
-
Focusing the editor using the Tab key no longer activates edit mode
immediately. This prevents the Tab key from being trapped, which was an
accessibility problem for keyboard users.Instead, when the editor is focused, users can now press Enter to begin
editing, and Escape to stop editing. A prompt is displayed with these
instructions when focused. Focusing the editor with a mouse click continues to
activate edit mode immediately, as before. -
The editor now uses the CodeMirror
contenteditableinput style, which has
much better screen reader support. -
Line numbers are now annotated with
aria-hiddenso that they are not voiced
by screen readers. -
Increased default
line-heightfromnormalto1.4em. -
Added a default
padding-leftof1em. -
Increased width of cursor from
1pxto2px. -
Increased default tab
font-sizefrom0.75remto0.8em; -
Increased default
--playground-bar-heightfrom35pxto `40px. -
--playground-cursor-colornow defaults to the value of
--playground-code-default-color. -
--playground-code-gutter-backgroundnow defaults to the value of
--playground-code-background. -
--playground-code-gutter-margin-rightdefault changed from1px solid #dddtonone. -
--playground-code-linenumber-colordefault changed from#999to#767676.
Added
-
Added
playground-styles.cssandplayground-styles.jswhich can be imported
to apply Playground styles to server-side rendered code. -
Added
dialogCSS shadow part tocode-editor,file-editor, andidefor
styling modal dialogs that appear over the editor (currently just used for the
keyboard help that shows when the editor is focused using the keyboard). -
Added CSS custom properties:
--playground-code-line-height:line-heightof code in the editor.--playground-tab-bar-font-size:font-sizeof tabs in the file picker tab
bar.--playground-tab-bar-active-color: Textcolorof active file-picker tab.--playground-tab-bar-indicator-color:colorof the active tab indicator
line (usetransparentto hide).--playground-tab-bar-active-background:backgroundof the active file-picker tab.
-
Added
aria-labelattribute to reload, new file, and file context menu
buttons. -
Added
titleattribute to preview<iframe>element. -
Added
aria-labelto the preview loading indicator, and set
aria-hidden=truewhen the preview is not loading.
v0.8.0
Added
- TypeScript type errors are now displayed inline. Previously, only syntax
errors were displayed. Type errors may take slightly longer to appear than
syntax errors, because they require fetching.d.tsfiles and running a more
expensive compiler pass.
Changed
- [BREAKING] Removed
--playground-error-borderproperty, and updated
inline error style from a dashed border to a red squiggle.
v0.7.0
Changed
- [BREAKING] Replaced
filesgetter/setter on<playground-project>and
<playground-ide>withconfiggetter/setter. This property has the same
type as the JSON config, and can be used to save/restore the state of all
files and other configuration.
Fixed
- TypeScript errors of the form
Property '...' does not exist on typeand
Cannot find name '...'are now suppressed (temporarily untild.tsfiles
are fetched).
v0.6.6
v0.6.5
v0.6.4
Added
-
TypeScript errors are now displayed in the editor with red underlines. A
tooltip displaying the error is shown on hover.- Note that only basic/syntactic errors are currently shown, because typings
of dependencies are not currently available to compilation.
- Note that only basic/syntactic errors are currently shown, because typings
-
Added CSS property
--playground-error-border, theborder-bottomof code
spans with an error (2px red dashedby default). -
Added CSS shadow part
diagnostic-tooltipfor styling the tooltip that
appears when hovering over an error.