picocss / pico

Minimal CSS Framework for semantic HTML
https://picocss.com
MIT License
13.82k stars 406 forks source link

dotted line if tooltip is added #629

Open Kugeleis opened 6 days ago

Kugeleis commented 6 days ago

Describe the issue

Current Behavior

        <ul>
            <li>
                <label data-tooltip="Toggle dark and light mode" for="theme-toggle" class="theme-toggle-label">{%
                    include 'flaticons/bright.svg' %}
                    <input name="terms" class="theme-toggle" id="theme-toggle" type="checkbox" role="switch"
                        checked />{%
                    include 'flaticons/moon.svg' %}
                </label>
            </li>
        </ul>

produces a dotted line below the element. data-tooltip="Tooltip" within the <input> element destroys formatting completely.

Expected Behavior

Only tooltip added