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

fix(material/chips): remove button is too small #29351

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

essjay05
Copy link
Contributor

@essjay05 essjay05 commented Jun 28, 2024

Fixes Angular Components Chip component where the touch target of the remove button of a chip is too small. Updates .mat-mdc-chip-remove to target more specific styles to override original style of padding: 8px so that the user has a larger touch target particularly on mobile devices.

Fixes b/286959517

Before screenshot
After screenshot

BREAKING CHANGE: updates chip remove button touch target to increase accessibility of the button especially on touch/mobile devices.

@essjay05 essjay05 force-pushed the increase-chip-remove-touch-target-size branch from 049bd97 to 347ecef Compare July 1, 2024 15:53
@angular-robot angular-robot bot added the detected: breaking change PR contains a commit with a breaking change label Jul 1, 2024
@essjay05 essjay05 force-pushed the increase-chip-remove-touch-target-size branch from 24e6edb to 1319eee Compare July 1, 2024 20:58
@essjay05 essjay05 changed the title fix(material/chip): remove button is too small fix(material/chips): remove button is too small Jul 1, 2024
@essjay05 essjay05 marked this pull request as ready for review July 1, 2024 21:33
@essjay05 essjay05 requested a review from a team as a code owner July 1, 2024 21:33
@essjay05 essjay05 requested review from crisbeto and amysorto and removed request for a team July 1, 2024 21:33
@mmalerba mmalerba added the dev-app preview When applied, previews of the dev-app are deployed to Firebase label Jul 1, 2024
@@ -398,6 +398,17 @@
}
}

//Increases mdc-dhip-remove trailing icon action touch-target in order to fix b/286959517
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: space after //
nit: "dhip" => "chip"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated comment.

Copy link

github-actions bot commented Jul 1, 2024

Deployed dev-app for 471bb9f to: https://ng-dev-previews-comp--pr-angular-components-29351-dev-4ylvjidv.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

@essjay05 essjay05 requested a review from mmalerba July 2, 2024 22:49
Fixes Angular Components Chip component where the touch target of the
remove button of a chip is too small. Updates .mat-mdc-chip-remove to
target more specific styles to override original style of padding: 8px
so that the user has a larger touch target particularly on mobile
devices.

Fixes b/286959517
Fixes lint errors from previous commit for Angular Components
Chip component where the remove button touch target is too small,
particularly for touch/mobile devices. Increases padding on all
sides.

Fixes b/286959517
Fixes issue with Angular Component Chip's touch target size by
increasing the padding on chips with a trailing icon that has
an action.

Fixes b/286959517

BREAKING CHANGE:  updates chip remove button touch target to increase accessibility of the button especially on touch/mobile devices.
Updates fix to Autocomplete Component Chips component where the
touch target size is too small and fails minimum accessibility
size of 48x48 px. Addresses nit fixes from PR review.

Fixes b/286959517

BREAKING CHANGE: updates padding size of remove touch target to
satisfy minimum 48x48 accessibility size.
Fixes Angular Components Chip component where the touch target of the
remove button of a chip is too small. Updates .mat-mdc-chip-remove to
target more specific styles to override original style of padding: 8px
so that the user has a larger touch target particularly on mobile
devices.

Fixes b/286959517
Fixes lint errors from previous commit for Angular Components
Chip component where the remove button touch target is too small,
particularly for touch/mobile devices. Increases padding on all
sides.

Fixes b/286959517
Fixes issue with Angular Component Chip's touch target size by
increasing the padding on chips with a trailing icon that has
an action.

Fixes b/286959517

BREAKING CHANGE:  updates chip remove button touch target to increase accessibility of the button especially on touch/mobile devices.
@essjay05 essjay05 force-pushed the increase-chip-remove-touch-target-size branch from 74eb432 to 471bb9f Compare July 3, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
detected: breaking change PR contains a commit with a breaking change dev-app preview When applied, previews of the dev-app are deployed to Firebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants