{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"866dc91bf1d6d59fd34ff5ca68007bc80fc157f4","tarball":"https://registry.npmjs.org/@material/touch-target/-/touch-target-15.0.0-canary.da22ca960.0.tgz","fileCount":13,"integrity":"sha512-9HplkRNu3JPE7OdQ7QVerfb5mVczVOK6drBmQxocQUXv3o432ZT3DWywYKII/Fi4DAkk9mgi1kC1mcMHUBWzMQ==","signatures":[{"sig":"MEUCIQCgN/iGAXUsG96IkFbwvRCSgMSNRf1h5n72mULmki/t7AIgaAvveCNMw0sGzAB/VQqZXk0gWiy5c8MkxZ5BCaEq4No=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16722,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCj7sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmruwg//YQFkU5A9Amf7Ohe4rZLfDVccgIQ+fT+qa+bCvgZTar8LY5xb\r\nxTBm05Bzydxip/JuubaWzscPbNcGkoAoVAPYxeWCZfGlrxNaPYkBNTNFV9CX\r\nphTtGc3Ih24sZM1m8ZeJMHlPzqfRXM1UapyrI7v22lNorqt+6/SjSIctxVXa\r\nj5htBIYgMLpRrNoQoAA4t2ViC1I7PumRuHaOQpRwC0zf3/h7wUSNWXOz+aWj\r\nJ4bJJOfcr/mGv8i35JHiZljSxMCrLFri+Or7Jh4prrZiiKEFoWAOyNxH/q8x\r\nc7FhyR2u2RP9BsWeOfj+DrgG8Lb/+/FvzLiHnczhLKR9sUJN6gC6PoBgWeyI\r\nlJSB/uaktZ0rwPW3ePmZGRPARxfhV8Mg+Fa2yKeTUbgeuzVyendVwZP9WQyc\r\n+XMCKYNqyypkr/TGJK9UQqaQiaJ4XetzK5WsU5d8ynh/Kg6LwNsWQ1Ku8X6Z\r\nYstpWqPmoMDGtQ7vMzmAouAjuGeOPl/Xp3IRwo1piouIm8HrDmQRlmnaslgn\r\nrsR4hvwwuw0B4d+IukXvqhVmjpQ73yTO49bHkslwT4Ewxq72WDsgS7ujvCH8\r\niaRqhDtb6RhVbhRIBeCM0ipU3B8BLhJGthcfGiTfy9GEgmQ4b1krdqrqZtNo\r\np6jJdPFR/7s/JG0FX9YoH2Rkfw03duZew7Y=\r\n=F8oU\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    <div class=\"mdc-button__touch\"></div>\n    <span class=\"mdc-button__label\">My Accessible Button</span>\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":"1b58f37865efc4ba8ba06e1190cef502dee9f902","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@v14.21.3+x64 (linux)","description":"Touch target mixins and variables for Material Components for the web","directories":{},"maintainers":[{"name":"yefim","email":"hi@yef.im"},{"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":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.da22ca960.0","@material/base":"15.0.0-canary.da22ca960.0","@material/theme":"15.0.0-canary.da22ca960.0","@material/feature-targeting":"15.0.0-canary.da22ca960.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/touch-target_15.0.0-canary.da22ca960.0_1678393067858_0.8797938539671797","host":"s3://npm-registry-packages"},"_id":"@material/touch-target@15.0.0-canary.da22ca960.0","version":"15.0.0-canary.da22ca960.0"}