You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nimble-anchor element's width includes some extra space on one or both of its sides, compared to the bounds of the native a element in the shadow root.
💻 Repro or Code Sample
Examine any nimble-anchor e.g. in Storybook.
🤔 Expected Behavior
Bounds of the nimble-anchor should be the same as the inner a element.
😯 Current Behavior
There is some kind of "padding" on one or both sides.
🔦 Context
Noticed when reviewing the link support in the rich-text editor.
The text was updated successfully, but these errors were encountered:
## 🤨 Rationale
Fixes#1508
## 👩💻 Implementation
The issue is that whitespace inside the template was being rendered.
Inlined `startSlotTemplate` so that we could remove whitespace internal
to it. (We had previously done the same thing to the `endSlotTemplate`
for the same reason.) Removed all other whitespace in the template that
was causing a problem.
## 🧪 Testing
Tested in Storybook. Created a new Chromatic test.
## ✅ Checklist
- [x] I have updated the project documentation to reflect my changes or
determined no changes are needed.
🐛 Bug Report
The
nimble-anchor
element's width includes some extra space on one or both of its sides, compared to the bounds of the nativea
element in the shadow root.💻 Repro or Code Sample
Examine any
nimble-anchor
e.g. in Storybook.🤔 Expected Behavior
Bounds of the
nimble-anchor
should be the same as the innera
element.😯 Current Behavior
There is some kind of "padding" on one or both sides.
🔦 Context
Noticed when reviewing the link support in the rich-text editor.
The text was updated successfully, but these errors were encountered: