Skip to content

Regression in v1.18.0 st.metric's help tooltip position #6093

@snehankekre

Description

@snehankekre

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

Reported by @marduk2 on our forum. The help tooltip for st.metric has changed positions in v1.18.0 and appears under the metric label instead of to its right.

Reproducible Code Example

import streamlit as st

st.title("'Help' tooltips in st.metric render in a weird position")

st.metric(
    label="Example metric",
    help="Something doesn't feel right...",
    value=150.59,
    delta="Very high",
)

Steps To Reproduce

  1. Run the app

Expected Behavior

image

Current Behavior

image

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.18.0
  • Python version: 3.9
  • Operating System: macOS
  • Browser: Chrome
  • Virtual environment: NA

Additional Information

No response

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!

Metadata

Metadata

Labels

feature:st.metricRelated to the `st.metric` elementpriority:P2Medium-high priority - fix within one monthstatus:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions