-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/slide-toggle): increase slide toggle touch target #31178
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
base: main
Are you sure you want to change the base?
fix(material/slide-toggle): increase slide toggle touch target #31178
Conversation
42a8d10
to
240e097
Compare
Deployed dev-app for 4416dec to: https://ng-dev-previews-comp--pr-angular-components-31178-dev-ytqsnhym.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
240e097
to
605e2a7
Compare
605e2a7
to
bbc90d1
Compare
bbc90d1
to
58ea746
Compare
Updates Angular Components Slide Toggle component and increases the touch target to meet strict accessibility guidelines of buttons having a minimum touch target of 48x48 pixels. Fixes b/265033905
Updates previous changes to remove empty whitespaces causing lint errors.
58ea746
to
4416dec
Compare
@@ -21,6 +21,27 @@ $fallbacks: m3-slide-toggle.get-tokens(); | |||
padding: 0; | |||
position: relative; | |||
|
|||
&::after { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that the slide toggle's touch target is determined by the token slide-toggle-state-layer-size
. If we just increase it to 48px
for density: 0
, doesn't that resolve this in the same way?
Updates Angular Components Slide Toggle component and increases
the touch target to meet strict accessibility guidelines of buttons having
a minimum touch target of 48x48 pixels.
Before screenshot
Before screencast
After screenshot
After screencast
Fixes b/265033905