# Span class="tooltip" in the editor creates a tooltip

**URL:** <https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047>\
**Category:** Bug graveyard\
**Tags:** tracked\
**Created:** [August 7, 2026, 10:45am UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047 "2026-08-07T10:45:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tofutush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@Tofutush](https://forum.obsidian.md/u/Tofutush)\
**Post date:** [August 7, 2026, 10:45am UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047/1 "2026-08-07T10:45:07Z")

</div>

### Steps to reproduce

Write . in both reading view and live preview, a UI tooltip is rendered, which probably shouldnt happen inside the editor.

### Did you follow the troubleshooting guide? Y

### Expected result

With any other class, the span renders normally with no interference from obsidian’s css. class=“tooltip” should act the same

### Actual result

source view:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/7/1/713ebf75520173d3f8ecf7ee55f68f43870f2e55.png)

live preview:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/7/1/711f7876b440661d0547849f98c065728b9952d4.png)

reading mode:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/5/f/5f467cfee5ac8c8e90f6d6023a2a6bde58cadc16.png)

all produced in the sandbox vault

### Environment

SYSTEM INFO:  
Obsidian version: 1.13.4  
Installer version: 1.7.7  
Operating system: Windows 11 Home China 10.0.26200  
Login status: not logged in  
Language: en  
Insider build toggle: off  
Live preview: on  
Base theme: adapt to system  
Community theme: none  
Snippets enabled: 0  
Restricted mode: on  
RECOMMENDATIONS:  
none

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 7, 2026, 1:11pm UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047/2 "2026-08-07T13:11:47Z")

</div>

I am not sure I understand you.  
Download and reinstall Obsidian. Please make a screen recording of this happening in the sandbox vault.

---

<div class="post-metadata">

**Author:** ![Tofutush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@Tofutush](https://forum.obsidian.md/u/Tofutush)\
**Post date:** [August 7, 2026, 1:22pm UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047/3 "2026-08-07T13:22:52Z")

</div>

[https://file.garden/ZDYG0B-J4RNQd5Vf/obsidian%20tooltip.mp4](https://file.garden/ZDYG0B-J4RNQd5Vf/obsidian%20tooltip.mp4)

---

<div class="post-metadata">

**Author:** ![dawni](https://forum.obsidian.md/user_avatar/forum.obsidian.md/dawni/32/79261_2.png) [@dawni](https://forum.obsidian.md/u/dawni)\
**Post date:** [August 7, 2026, 1:25pm UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047/4 "2026-08-07T13:25:16Z")

</div>

Hi. If it gets marked as not a bug, I just wanted you to understand about this:

> [@Tofutush](#):
>
> With any other class, the span renders normally with no interference from obsidian’s css. class=“tooltip” should act the same

Use any of these classes in an HTML span in your note:

```txt
cm-hashtag
notice
modal
prompt
callout
cm-hashtag
is-unresolved
menu
popover
search-input-container
bases-formula-error
workspace-tab-header-container

```

You should see that they do get rendered.

It doesn’t matter where the styling is defined—a CSS snippet, a theme, Obsidian’s app.css—they all get rendered, as they should (in my opinion), when you call their class.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 7, 2026, 1:28pm UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047/5 "2026-08-07T13:28:06Z")

</div>

ok, I am gonna mark dawni as the solution

---

<div class="post-metadata">

**Author:** ![Tofutush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@Tofutush](https://forum.obsidian.md/u/Tofutush)\
**Post date:** [August 15, 2026, 8:47am UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047/6 "2026-08-15T08:47:33Z")

</div>

i dont think styles defined in obsidian’s css should be rendered bc the editor shouldnt be scoped together if you know what i mean? like for example, if i make a user title span (`<span class="user-title">user title span</span>`) here in the forum, it doesnt get rendered as a little badge, bc the editor has different scoping. like some donut-scoping thing preventing the ui style from leaking into the editor. i think it should be a bug when a text editor has certain words you cant write without it leading to unexpected behavior

but regardless, is there a way to prevent it from rendering like that while still keeping the tooltips in the app ui? im writing pages for a website and cant really change the class to anything but “tooltip” either.

---

<div class="post-metadata">

**Author:** ![dawni](https://forum.obsidian.md/user_avatar/forum.obsidian.md/dawni/32/79261_2.png) [@dawni](https://forum.obsidian.md/u/dawni)\
**Post date:** [August 15, 2026, 2:39pm UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047/7 "2026-08-15T14:39:19Z")

</div>

> [@Tofutush](#):
>
> is there a way to prevent it from rendering like that while still keeping the tooltips in the app ui?

In the default theme without interference from other snippets or plugins, this CSS ought to do it:

```css
.cm-content .tooltip,
.markdown-rendered .tooltip {
	all: unset;
}

```

(How to use CSS snippets in Obsidian: [CSS snippets - Obsidian Help](https://obsidian.md/help/snippets))

If that doesn’t match your surrounding text, it’s probably due to other snippets, a theme, or plugins. You would just have to look into which styles need to be set and to what values. (Or open a help thread with the details so folks can look into it with you).

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [August 29, 2026, 2:40pm UTC](https://forum.obsidian.md/t/span-class-tooltip-in-the-editor-creates-a-tooltip/117047/8 "2026-08-29T14:40:08Z")

</div>

Closed on August 29, 2026, 2:40pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
