Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve virtual touch target positioning for narrow elements #1493

Merged
merged 15 commits into from
May 20, 2024

Conversation

michaeltaranto
Copy link
Contributor

Improve virtual touch target positioning for narrow elements

To maintain accessibility for smaller interactive elements, Braid uses a virtual touch target to maintain the minimum hit area This change ensures that the virtual element is always centered to the visual target, in particular when the width of the visual target is narrower than the minimum hit area.

Dev note

Moved style composition of virtual touch targets into Vanilla Extract style sheets as a minor optimisation.

@michaeltaranto michaeltaranto requested a review from a team as a code owner May 16, 2024 00:13
Copy link

changeset-bot bot commented May 16, 2024

🦋 Changeset detected

Latest commit: c677675

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@braid-design-system/docs-ui Patch
braid-design-system Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

.changeset/yellow-badgers-cover.md Outdated Show resolved Hide resolved
.changeset/twelve-dryers-swim.md Outdated Show resolved Hide resolved
@michaeltaranto michaeltaranto merged commit 4152dc6 into master May 20, 2024
8 checks passed
@michaeltaranto michaeltaranto deleted the virtual-touchable-clean-up branch May 20, 2024 00:03
@seek-oss-ci seek-oss-ci mentioned this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants