{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"30ee4cbc48817a61d9cb1482b67f2551121cd28f","tarball":"https://registry.npmjs.org/@material/touch-target/-/touch-target-9.0.0-canary.afb68894e.0.tgz","fileCount":15,"integrity":"sha512-LHbsDd2mWLQsmCfH2u6GsLao1HjL2DN+VP0ZmBS5ddjCf4CICqEGoLQz3vEt7wUBPsuC+pI8qFbblhKlSVuAUA==","signatures":[{"sig":"MEUCIQDBGdjej/uFDHE2BOsmLrhCc5kBdhXP48gCGFVcgn09TwIgc93BtuJCfe0HU+rZLfTwafbszT10OwOr3NngyVMUTTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15438,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz6pjCRA9TVsSAnZWagAA3Z4P/i4a4Z7ih3HnJXrmD0tr\n71HTPjP+lN/qUDa+qF09TUOe4Ip23S3erfJkBoYwMGVSap4+pAdWfeG62iE+\nuCCrEQzb1h2OzbvnZIhsE9CG67QN1fcxSExq9A+eHkPdm4VvnwYvL6RYV6sw\n/aCqzj8pL+qgJrj33395PCQ4wphHQef3ISgY/Uvq8/jioQSSdY0d25SH6Nul\nC6e/qIepY3RmDHjnbKqfXcgqxxADBadWapc4DtDFKb5r3kWB9CLNYvqs9WdV\nrEKsJX7y3+NSNGxuidgLT0C/LwDE/H0dO/Pnh/YRzsDqLoajnIxoSfF4tN+O\nbYL1JkMAtqEbbECfcavcqKycvdCVYcAaOmbp0WRhgVE6MZELx/TmnA0GYOIp\n6qhMAI+UHeJPD92XrLzufIT/LViEQptfBuRDZ1qRd/CRsuyukYxKIX+MbtYf\nn6tmQ5GzD5ZKSMcKMJtRbOLooalBL8YnEUf9C9H8gB9u+3MIt8PCPATEOvyq\nJLUbdluAP1fZJPYP2a9zWaPUkePkJRianlNLsq2Crr6MaW/gGxZzwcWRbgHj\n9FsLoCdGQfDw+wmyzPPWnQPdn1ZoXrjkoWy2Ndb0qaJhTzyhGBQLN6ZZH1xa\nH/ZoTs24Kh+Fk1P/KBgVL6jylcC5HFPypr3++ybwb0xaiTDHsjz4JaG6xoK1\nEiXK\r\n=wZ9L\r\n-----END PGP SIGNATURE-----\r\n"},"name":"@material/touch-target","readme":"<!--docs:\ntitle: \"Touch Target\"\nlayout: detail\nsection: components\nexcerpt: \"Increased touch targets for components\"\npath: /catalog/touchtarget/\n-->\n\n# Touch Target\n\nTouch targets are the parts of the screen that respond to user input. They extend beyond the visual bounds of an element.\nFor example, a button may appear to be 48 x 36 px, but the padding surrounding it comprises the full 48 x 48 px touch target.\n\nMaterial Design spec states that touch targets should be at least 48 x 48 px.\nThe MDC Web library provides mixins and guidance on adding an increased touch target for the following components:\n* Button\n* Chips\n* Checkbox\n* Radio\n* Mini FAB\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/design/usability/accessibility.html#layout-typography\">Material Design guidelines: Touch Targets</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/touch-target\n```\n\n## Basic Usage\n\n### HTML Structure\n\nFor a given button component:\n\n```html\n<button class=\"mdc-button\">\n  <div class=\"mdc-button__ripple\"></div>\n  <span class=\"mdc-button__label\">My Inaccessible Button</span>\n</button>\n```\n\nYou would add an increased touch target as follows:\n\n```html\n<div class=\"mdc-touch-target-wrapper\">\n  <button class=\"mdc-button mdc-button--touch\">\n    <div class=\"mdc-button__ripple\"></div>\n    <span class=\"mdc-button__label\">My Accessible Button</span>\n    <div class=\"mdc-button__touch\"></div>\n  </button>\n</div>\n```\n\nNote that the outer `mdc-touch-target-wrapper` element is only necessary if you want to avoid potentially overlapping touch targets on adjacent elements (due to collapsing margins).\n\n### Styles\n\n```css\n@use \"@material/touch-target/mdc-touch-target\";\n```\n\n## Style Customization\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`wrapper` | Applied to the wrapper touch target element.\n`touch-target` | Applied to the inner touch target element.\n`margin` | Applied to the component root element. Adds margin to compensate for the increased touch target.\n","gitHead":"8a3ec1a501083d67f1c342fcf5b11a765a586ca0","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","accessibility","touch target"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-touch-target"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"Touch target mixins and variables for Material Components for the web","directories":{},"maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"@material/base":"9.0.0-canary.afb68894e.0","@material/feature-targeting":"9.0.0-canary.afb68894e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/touch-target_9.0.0-canary.afb68894e.0_1607445090955_0.1273077212315752","host":"s3://npm-registry-packages"},"_id":"@material/touch-target@9.0.0-canary.afb68894e.0","version":"9.0.0-canary.afb68894e.0"}