Bug: SVG elements cannot be modified
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the issue with the provided SVG and Tailwind classes while the element is selected in the inspector. Start by examining the communication.js console error and the extension's SVG handling path; done means adding, removing, or changing Tailwind tokens updates the selected SVG as it does for other elements.
Written by the indexing model from the issue text.
Description
With an <svg> selected in the inspector, the extension applies a data-tw-selected attribute to it, but adding/removing/modifying any of the Tailwind tokens in the extension panel does not effect the element.
The below SVG example works as expected when inserted into the document.
<svg class="stroke-cyan-500"></svg>
With that element selected in the inspector, adding an additional token such as rotate-90, or changing the existing token to stroke-green-500 has no effect on the element, which continues to have the class stroke-cyan-500.
The following error message is printed to the console, which may be relevant:
Uncaught (in promise) {message: 'A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received'}
p @ communication.js:1
Adjusting other element types work as expected.
- Dominant language
- No language data
- Stars
- 5
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from beyondcode/devtoolsfortailwind-community
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
beyondcode/devtoolsfortailwind-community#23 · 1 reaction ·
All issues in beyondcode/devtoolsfortailwind-community
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hemilabs/ui-monorepo#2332 ·
-
Help-Wanted Needs-Triage Package-Update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-pkgs#438662 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·