Repository navigation
feat(ui): IconButton 44px hit area and no-scale press, with composition spacing - #548
Merged
Merged
Conversation
SocialLinks v0.2 spacing, ButtonGroup v0.2 hit area and ListItem v0.3 spacing. Refs #540
…area SocialLinks v0.3, ListItem v0.4, Tabs v0.6, Carousel v0.3, AttachmentField v0.3 and v0.4. Refs #540
Compositions adapt: SocialLinks and ListItemActions spacing, Carousel and AttachmentField gaps; ButtonGroup and Tabs scroll buttons use compact targets.
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements the approved IconButton v0.4 invisible hit area (#540) and v0.5 press feedback. It also brings along the composition adaptations those changes require, each covered by its own approved amendment.
IconButton (
(#540))::after(--space-14). This works on every pointer type and adds no new prop. The visible size, Material and focus ring are unchanged.scale-94is removed. Chrome feasibility tests showed that every scaled option misdirected clicks at the edge. Pressed paint by variant:surface-3plus--shadow-btn-pressed, a non-color depth cue;--shadow-focusstill wins when focused;--color-alpha-red-15.Compositions (approved amendments)
gapbecomes a per-size minimum: md ≥gap-5, lg ≥gap-3; prop values and default unchangedListItemActionsgap-1→gap-5; adjacentsmactions need consumer clearancegap-2→gap-3gap-3, rootgap-4. The root change fixes Chrome touch adjustment toward the textareadata-icon-button-target="compact"(direct parent only)Compact suppression reads an ancestor data attribute from IconButton's own static recipe. No
eg-*marker is used as a styling selector.Commits
7aa05eaf00daf5e29f143b66eaf4f76af4dThe full decision history (owner choices S6–S12, each verbatim) is in
odd/tasks/consumer-request-specs.md.Validation
pnpm test:props: 132/132pnpm typecheck, biome, and theprops,artifactandsystemchecks all passpnpm build,node --test scripts/package-exports.test.mjspasses 138/138source.revisionfields.Consumer impact (for release notes)
overflowedge can now create scrollbars or be clipped (CHANGELOG note).Linked issue
Refs #540 (closes at the release that ships it, per the consumer requests flow). Related: #104, #88, #79, #107.