fix(wysiwig): zindexregistry for menus
This commit is contained in:
@ -12,7 +12,7 @@ import '../elements/dees-input-tags.js';
|
||||
import '../elements/dees-input-wysiwyg.js';
|
||||
import '../elements/dees-appui-profiledropdown.js';
|
||||
|
||||
export const showcasePage = () => html`
|
||||
export const zIndexShowcase = () => html`
|
||||
<style>
|
||||
${css`
|
||||
.page-wrapper {
|
||||
@ -245,6 +245,16 @@ export const showcasePage = () => html`
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* Consistent panel spacing */
|
||||
dees-panel {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
dees-panel:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.test-area {
|
||||
position: relative;
|
||||
height: 200px;
|
||||
@ -665,14 +675,23 @@ export const showcasePage = () => html`
|
||||
.placeholder=${'Type "/" to see slash commands or select text to format...'}
|
||||
.outputFormat=${'html'}
|
||||
.description=${'The slash menu and formatting menu should appear above this modal'}
|
||||
.value=${`<p>Welcome to the WYSIWYG editor demo!</p>
|
||||
<p>This editor demonstrates proper z-index management:</p>
|
||||
<ul>
|
||||
<li>Type <strong>/</strong> to open the slash command menu</li>
|
||||
<li>Select any text to see the formatting toolbar</li>
|
||||
<li>Both menus will appear <em>above</em> this modal</li>
|
||||
</ul>
|
||||
<p>Try it now: Type / here or select this text to format it.</p>`}
|
||||
></dees-input-wysiwyg>
|
||||
</dees-form>
|
||||
<p style="margin-top: 16px; color: ${cssManager.bdTheme('#666', '#999')}">
|
||||
<strong>Tips:</strong><br>
|
||||
• Type "/" to open the slash command menu<br>
|
||||
• Select text to see the formatting toolbar<br>
|
||||
• Both menus should appear above this modal
|
||||
</p>
|
||||
<div style="margin-top: 16px; padding: 16px; background: ${cssManager.bdTheme('#e3f2fd', '#1e3a5f')}; border-radius: 8px;">
|
||||
<strong style="color: ${cssManager.bdTheme('#1976d2', '#90caf9')}">✨ Z-Index Fix Applied!</strong><br>
|
||||
<span style="color: ${cssManager.bdTheme('#1976d2', '#90caf9')}">
|
||||
The WYSIWYG menus now properly use the dynamic z-index registry.<br>
|
||||
They will always appear above the modal, regardless of stacking order.
|
||||
</span>
|
||||
</div>
|
||||
`,
|
||||
menuOptions: [
|
||||
{ name: 'Cancel', action: async (modal) => modal.destroy() },
|
||||
|
Reference in New Issue
Block a user