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
{{ message }}
Repository navigation
[Feature request] Stamp to indicate interactive space #44
feature requestIdeas for additions or changes to the main librarypending releaseThis is built and will be released soonset:user-interactionsAnnotation components for Keyboard, Touch, Mouse, Device, and Platform interactions
Trying to solve the problem of visually showing the interactive target area around a visually smaller element
More details about the feature
Problem: My team needs a way to show the interactive space around an element or group of elements. Existing stamp components don't cleanly convey to "add some padding so that there's a 24x24 interactive target" and writing it out isn't always sufficient to get the idea across to dev teams.
Proposed solution: A new component that can be freely sized to indicate a precise or approximate interactive space visually. The stamp has a label and low opacity that can be overlaid on a design.
@julianmka Finally started working up something for this. Has an outline, translucent background, icon, and optional label in case it's needed. Open to thoughts, including on color, border styling, etc. It uses colors that are used by other User Interaction components, which might be fine and easy enough for other consumers to change if they want something more fitting for their orgs.
I'm also wondering if we would want any ability to tie it to a Details annotation (number, note icon) or attach a longer post-it note like some of the Flow Lines. 🤔
@julianmka Experimented further with a different style of double-border so that it isn't easily confused with the dashed borders of a lasso stamp.
Also added a label that floats on the side rather than inside the resizable target area, since that seems to mess up the dimensions when certain properties are swapped. It's visible here but hidden by default.
Sort of makes me wonder if it's worth a separate text property for labels and sizes. Or if that's even worthwhile?
I really like these! The external label makes a lot of sense.
Yes to linking to a notes item.
In my context, I'm not sure how often we'd need to specify dimensions since we don't do pixel-perfect layouts at all breakpoints. However, quick presets with 24x24, 44x44, and 48x48 could be useful shortcuts for platform-based minimums.
Attached a proper note stamp label to it, though it only has options to attach to the right side. I didn't want to over-complicate it with more options/variants unless it's a screaming need
This gives the option to change the label if needed, but defaults to a Note Details pairing
Added preset sizes with variable collections, providing Appearance properties for corner style (rounded or square) and size (24px, 44px, 48px). Set the default size to 44px. Corner style seemed apt because a mismatch between the annotation and what it overlays will look wonky.
feature requestIdeas for additions or changes to the main librarypending releaseThis is built and will be released soonset:user-interactionsAnnotation components for Keyboard, Touch, Mouse, Device, and Platform interactions
Activity
janmaarten-a11y commentedon Nov 17, 2026
@julianmka Finally started working up something for this. Has an outline, translucent background, icon, and optional label in case it's needed. Open to thoughts, including on color, border styling, etc. It uses colors that are used by other User Interaction components, which might be fine and easy enough for other consumers to change if they want something more fitting for their orgs.
I'm also wondering if we would want any ability to tie it to a Details annotation (number, note icon) or attach a longer post-it note like some of the Flow Lines. 🤔
janmaarten-a11y commentedon Nov 19, 2026
@julianmka Experimented further with a different style of double-border so that it isn't easily confused with the dashed borders of a lasso stamp.
Also added a label that floats on the side rather than inside the resizable target area, since that seems to mess up the dimensions when certain properties are swapped. It's visible here but hidden by default.
Sort of makes me wonder if it's worth a separate text property for labels and sizes. Or if that's even worthwhile?
julianmka commentedon Nov 19, 2026
I really like these! The external label makes a lot of sense.
Yes to linking to a notes item.
In my context, I'm not sure how often we'd need to specify dimensions since we don't do pixel-perfect layouts at all breakpoints. However, quick presets with 24x24, 44x44, and 48x48 could be useful shortcuts for platform-based minimums.
janmaarten-a11y commentedon Nov 23, 2026
@julianmka Latest iteration:
janmaarten-a11y commentedon Nov 24, 2026
PR with documentation updates is drafted here: #52
Found an alignment issue with the Note stamp label that will probably require it to be placed on the bottom or top, rather than the side.
Update: After stress testing, I think it best to omit the label. That can be added if there's a need by pairing with numbered UI Stamps.