design-system icon indicating copy to clipboard operation
design-system copied to clipboard

`Dropdown::ListItem::Interactive` enhancement - codemod

Open zamoore opened this issue 1 year ago • 1 comments

:pushpin: Summary

If merged, this PR will add a codemod to assist users in moving away from the deprecated @text argument on Dropdown::ListItem::Interactive component.

Input

<Hds::Dropdown as |dd|>
  <dd.Title @text='Title text' />
  <dd.Interactive @href='#' @text='Edit' />
</Hds::Dropdown>

Output

<Hds::Dropdown as |dd|>
  <dd.Title @text='Title text' />
  <dd.Interactive @href='#'>Edit</dd.Interactive>
</Hds::Dropdown>

:link: External links

Jira ticket: HDS-3692

:speech_balloon: Please consider using conventional comments when reviewing this PR.

zamoore avatar Aug 09 '24 21:08 zamoore

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
hds-showcase ✅ Ready (Inspect) Visit Preview Aug 14, 2024 5:46pm
hds-website ✅ Ready (Inspect) Visit Preview Aug 14, 2024 5:46pm

vercel[bot] avatar Aug 09 '24 21:08 vercel[bot]

The 2 failing tests are in the parent branch. Please see https://github.com/hashicorp/design-system/tree/3620-add-yield-to-list-item-interactive

zamoore avatar Aug 14 '24 13:08 zamoore