Fix: UI review bugs - #425
Conversation
…te orphaned Prism wrapper
… drop stale manage Prism assets
|
| public static function render_version_switch_warning(): void { | ||
| ?> | ||
| <div id="version-switch-warning" class="notice notice-warning" style="display: none; margin-top: 20px;"> | ||
| <div id="version-switch-warning" class="notice code-snippets-notice notice-warning" style="display: none; margin-top: 20px;"> |
There was a problem hiding this comment.
Add role="region" and aria-label here.
There was a problem hiding this comment.
also, replace inline margin-top with margin-block-start.
There was a problem hiding this comment.
@ramiy Added the role and updated the CSS. What should the label be? There's already text within the element explaining what it is for.
Co-authored-by: Rami Yushuvaev <r_a_m_i@hotmail.com>
Download and install |
|
|
||
| const newUrl = buildUrl(window.CODE_SNIPPETS.urls.edit, { id: response.id }) | ||
| window.history.pushState({}, document.title, newUrl) | ||
| window.history.replaceState({}, document.title, newUrl) |
There was a problem hiding this comment.
I think pushState is better here – it allows the 'add new' page to remain in their history.
|
|
||
| case 'description': | ||
| return ( null === $value ) ? '' : $value; | ||
| return is_scalar( $value ) ? wp_kses_post( (string) $value ) : ''; |
There was a problem hiding this comment.
This conversion belongs closer to when the output is actually rendered IMO.
| public static function render_version_switch_warning(): void { | ||
| ?> | ||
| <div id="version-switch-warning" class="notice notice-warning" style="display: none; margin-top: 20px;"> | ||
| <div id="version-switch-warning" class="notice code-snippets-notice notice-warning" style="display: none; margin-top: 20px;"> |
There was a problem hiding this comment.
@ramiy Added the role and updated the CSS. What should the label be? There's already text within the element explaining what it is for.
Recreation of #414.
Outstanding issues: