adobe / adobe/spectrum-web-components

[Bug]: Different Icons depending on import (drag-handle)

Open
#5,742 1 comment 0 reactions 0 assignees View on GitHub
bug Component:Icon triage
Dominant language
TypeScript
Stars
1.5k
Forks
262
Avg merge
3d 10h
Merged PRs (30d)
68

Description

### Code of conduct

- [x] I agree to follow this project's code of conduct.

### Impacted component(s)

icons-workflow

### Library version

1.7.0

### Expected behavior

I expect the icon I use to match the documentation.

### Actual behavior

If I do:
`import '@spectrum-web-components/icons-workflow/icons/sp-icon-drag-handle.js';
`

...I get a circular icon that might be appropriate for an input range slider. But that's not the 2 pairs of 4 dots that you see in the docs for drag handle: https://opensource.adobe.com/spectrum-web-components/components/icons-workflow/

However, if I use a different import strategy:
`import '@spectrum-web-components/icons-workflow/src/icons/DragHandle.js';
${DragHandleIcon()}
`

...then I get the correct icon.

### Screenshots

_No response_

### What browsers are you seeing the problem in?

Chrome

### How can we reproduce this issue?

Use the tag based drag-handle icon from the workflow icons package and see that it doesn't match documentation.

### Sample code or abstract reproduction which illustrates the problem

`import '@spectrum-web-components/icons-workflow/icons/sp-icon-drag-handle.js';

`

### Severity

None

### Logs taken while reproducing problem

_No response_

### Would you like to track this issue in Jira?

- [ ] Yes, please tell me the ticket number!

Contributor guide

Open the contributing guide

Research direction

Start with the tag-based entry point in icons-workflow/icons/sp-icon-drag-handle.js and compare it with src/icons/DragHandle.js, using the reproduction imports in the issue. Check the rendered tag-based icon against the workflow icons documentation; done means both import strategies show the documented drag-handle icon.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.