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.