{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cc1840ec01a92f182dfaf27b654bae5d6bb1b3a4","tarball":"https://registry.npmjs.org/@material/touch-target/-/touch-target-5.0.0-canary.ef7de4def.0.tgz","fileCount":12,"integrity":"sha512-I2vhjHhxbmoslMwNh7K48pfRE7klYPtlEWTgfxoeQ0XLPMgCZmXbZM04iO1TsHhKrIkMLh8fr68ic84GrZc+5w==","signatures":[{"sig":"MEUCIQCD0N5A48hGtPbd7o83/BDzuTsmSlehVOrBk2orxKR0jgIgOPp5JOyu0CMBWHqyEx0v/MNzcAmTgUkE+KNUSHPnIAw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13873,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeK2I7CRA9TVsSAnZWagAAZGQQAJpX8UcrFFg3S8nM0hbs\neORb2ACj4VC4gWuIcUmLvkplRFhdJ4ccLETw2UoS7fSgkLo/+vehgLF3hryk\n91buX/3u4poGfQXn3bwZYlWELJFb9ysluktVD3wRlh2jxMWlhzgLKkX52kz7\n0BzaL9nhYp6vhQsIJdPPT+Zfb826iygJA7eLc3V4KFQ5nEsX6P1Tvrv+tj3S\nrI6ySp55Vj+bxd4u0T82M/h+M1nAWTK6KR8f6AuHasv64CRhSOisoeCtoWjz\neIlZ1gX0YLgV689cKzVDhOZ3IyOm7R6teS9AxUJbXXa/zODZdV5Z4ukZK8x4\nq4iAxRR5asctkenGOrvrKTjkPPSijcfMjd49a/d0N1BxoKuJyKb0ySPVpGW2\nBnAkNT3GEMvVSPWKPW+QQ3bpqMtIz5NesIvV3akknqXx7F5c9CHw+M5j7cUf\nhBBqhgzZEcXzM+EGIwiNsBbnGGVHM7c2HEqxYlPaWoWpNa1nk5hZbPn8CaoS\nVtKPkTwIlKpHOV5lcUdjgKOtg755mduxzxHhw1tga5t5LYFETG58wjN5x1K9\njiwgQUpdc2hK0WthukXUSfaKwTSlNDfNFsL6e/HmiLP7urPvOlLp+r5LtACI\nvZ/EKqAfqhyaj1MuZ4PGg5whrnPrWLcw89elVpfK87w/ssU834xIC54pVKKG\nEGAR\r\n=b2W2\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@import \"@material/touch-target/mdc-touch-target\";\n```\n\n## Style Customization\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-touch-target-wrapper` | Applied to the wrapper touch target element.\n`mdc-touch-target` | Applied to the inner touch target element.\n`mdc-touch-target-margin` | Applied to the component root element. Adds margin to compensate for the increased touch target.\n","gitHead":"1ac98da12680a4581dd0427e23f1dd1b95a939a0","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.14.1/node@v10.18.1+x64 (linux)","description":"Touch target mixins and variables for Material Components for the web","directories":{},"maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"_nodeVersion":"10.18.1","dependencies":{"@material/base":"5.0.0-canary.ef7de4def.0","@material/feature-targeting":"5.0.0-canary.ef7de4def.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/touch-target_5.0.0-canary.ef7de4def.0_1579901498665_0.070204858430998","host":"s3://npm-registry-packages"},"_id":"@material/touch-target@5.0.0-canary.ef7de4def.0","version":"5.0.0-canary.ef7de4def.0"}