Skip to content

Feat/add title label#2966

Closed
codingwithdani wants to merge 3 commits intomasterfrom
feat/add-title-label
Closed

Feat/add title label#2966
codingwithdani wants to merge 3 commits intomasterfrom
feat/add-title-label

Conversation

@codingwithdani
Copy link
Contributor

@codingwithdani codingwithdani commented Mar 9, 2026

Category/Component

TASK:

Description, Motivation and Context

Fix AtomTag title not showing on hover

Previously, the Atom Tag label did not display the title tooltip when hovering over the tag. This was caused by the label being rendered inside a span, which prevented the tooltip from appearing correctly in this context.

To fix this, the label element was changed from span to p, allowing the title attribute to work as expected when hovering over the tag.

Result
The tag now correctly shows the title tooltip on hover.

Types of changes

  • 🪲 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🧾 Documentation
  • 📷 Demo
  • 🧪 Test
  • 🧠 Refactor
  • 💄 Styles
  • 🛠️ Tool

Screenshots - Animations

codingwithdani and others added 2 commits March 9, 2026 13:18
…tics

Change label element from span to p and add fallback to label prop when title is not provided.

Co-Authored-By: Claude <noreply@anthropic.com>
Remove test that checked for absence of title attribute, as the component now uses label as fallback for title when not explicitly defined.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Mar 9, 2026

STATEMENTS BRANCHES FUNCTIONS LINES
≍ 0= ≍ 0.02↑ ≍ 0= ≍ 0=
% 76.58 63.46 68.31 78.13
ABS 3507 / 4579 2130 / 3356 690 / 1010 3324 / 4254

Add test to verify that title attribute is not rendered when not explicitly provided, ensuring clean DOM without unnecessary attributes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Mar 9, 2026

STATEMENTS BRANCHES FUNCTIONS LINES
≍ 0= ≍ 0= ≍ 0= ≍ 0=
% 76.58 63.44 68.31 78.13
ABS 3507 / 4579 2128 / 3354 690 / 1010 3324 / 4254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant