Small update for tooltip modal
This commit is contained in:
parent
c44fcd66c5
commit
6b89858086
@ -1429,9 +1429,9 @@ Renders the theme sidebar (not displayed anywhere by default). Requires the "Dis
|
||||
|
||||
### Tooltip (Modal)
|
||||
|
||||
Includes a tooltip modal for the wrapped content, indicated by a dotted underline. Just omit the shortcode block and write it directly into the text. You can format words or phrases inside the tooltip content as \***bold**\* or \_*italic*\_, and escape the special characters with a prefixed `$` sign (WP sanitized backslashes). This shortcode also works if your role lacks the shortcode capability.
|
||||
Includes a tooltip modal for the wrapped content, indicated by a dotted underline. Just omit the shortcode block and write it directly into the text. You can format words or phrases inside the tooltip content as \***bold**\* or \_*italic*\_ and escape the special characters with a `$` prefix (WP sanitized backslashes). This shortcode also works if your role lacks the shortcode capability.
|
||||
|
||||
**Note:** You can technically use HTML in the shortcode content attribute, as far as the post sanitizer and the user role allows. However, this would need to be done in the code view and might break on subsequent saves. Also beware nested quotation marks and square brackets, which can break the shortcode — use [HTML entities](https://developer.mozilla.org/en-US/docs/Glossary/Character_reference) instead.
|
||||
**Note:** You can technically use HTML in the shortcode content attribute, as far as the post sanitizer and user role allows. However, be cautious of nested quotation marks and square brackets, as they can break the shortcode — use [HTML entities](https://developer.mozilla.org/en-US/docs/Glossary/Character_reference) instead.
|
||||
|
||||
```
|
||||
[fcnt content="This is a note."]note[/fcnt]
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1221,7 +1221,7 @@ add_action( 'wp_head', 'fictioneer_cleanup_discord_meta' );
|
||||
|
||||
function fictioneer_render_tooltip_dialog_modal_html() {
|
||||
// Start HTML ---> ?>
|
||||
<dialog class="dialog-modal" id="fictioneer-tooltip-dialog">
|
||||
<dialog class="dialog-modal _tooltip" id="fictioneer-tooltip-dialog">
|
||||
<div class="dialog-modal__wrapper">
|
||||
<button class="dialog-modal__close" data-click-action="close-dialog-modal" aria-label="<?php esc_attr_e( 'Close modal', 'fictioneer' ); ?>"><?php fictioneer_icon( 'fa-xmark' ); ?></button>
|
||||
<div class="dialog-modal__header" data-finder="tooltip-dialog-header"><?php _ex( 'Note', 'Default tooltip modal header.', 'fictioneer' ); ?></div>
|
||||
|
@ -84,7 +84,7 @@ p a:not(.wp-element-button, .modal-tooltip),
|
||||
}
|
||||
|
||||
a.modal-tooltip {
|
||||
cursor: help;
|
||||
cursor: pointer;
|
||||
text-decoration: underline var(--fg-900) dotted 1px;
|
||||
text-underline-offset: 0.15em;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user