diff --git a/lib/a11y-snapshot/__snapshots__/aom.test.js.snap b/lib/a11y-snapshot/__snapshots__/aom.test.js.snap index 0e8611307..19dedb5d5 100644 --- a/lib/a11y-snapshot/__snapshots__/aom.test.js.snap +++ b/lib/a11y-snapshot/__snapshots__/aom.test.js.snap @@ -17491,6 +17491,540 @@ exports[`firefox /components/checkboxes/ 1`] = ` `; exports[`firefox /components/dialogs/ 1`] = ` + + EDIT THIS PAGE + + Checkbox + Checkbox + + + + Checkboxes allow the user to select one or more items from a set. + + + + Checkboxes can be used to turn an option on or off. + + + + If you have multiple options appearing in a list, you can preserve space + by using checkboxes instead of on/off switches. If you have a single + option, avoid using a checkbox and use an on/off switch instead. + + + + + Feedback + Feedback + + + WAI-ARIA + WAI-ARIA + + + Scroll down to 'Exports Analysis' for a more detailed report. + + Scroll down to 'Exports Analysis' for a more detailed report. + + + + Material Design + Material Design + + + Figma + Figma + + + Adobe + Adobe + + + Sketch + Sketch + + + + Basic checkboxes + Basic checkboxes + + + Checkbox demo + Checkbox demo + Checkbox demo + + Checkbox demo + + + demo source + + + + + + See more + + + + + + + Label + Label + + + + You can provide a label to the Checkbox thanks to the FormControlLabel + component. + + + + + + + demo source + + + + + + See more + + + } label="Label" /> + } + label="Disabled" /> + + + Size + Size + + + + Use the size prop or customize the font size of the svg icons to change + the size of the checkboxes. + + + + Checkbox demo + Checkbox demo + Checkbox demo + + demo source + + + + + + See more + + + + + + Color + Color + + + Checkbox demo + Checkbox demo + Checkbox demo + Checkbox demo + + demo source + + + + + + See more + + + + + + + Icon + Icon + + + Checkbox demo + Checkbox demo + + demo source + + + + + + See more + + + } + checkedIcon={} /> } + checkedIcon={} /> + + + Controlled + Controlled + + + + You can control the checkbox with the checked and onChange props: + + + + controlled + + demo source + + + + + + See more + + + + + + Indeterminate + Indeterminate + + + + A checkbox input can only have two states in a form: checked or unchecked. + It either submits its value or doesn't. Visually, there are three + states a checkbox can be in: checked, unchecked, or indeterminate. + + + + + + + + demo source + + + + + + See more + + + } /> {children} + +
+ + + ⚠️ When indeterminate is set, the value of the checked prop only impacts + the form submitted values. It has no accessibility or UX implications. + + +
+ + FormGroup + FormGroup + + + + FormGroup is a helpful wrapper used to group selection control components. + + + + + Assign responsibility + + + + + + Be careful + + + + Pick two + + + + + + You can display an error + + + + demo source + + + + + + See more + + + Label placement + Label placement + + + You can change the placement of the label: + + + + Label placement + + + + + + + + demo source + + + + + + See more + + + Customized checkbox + Customized checkbox + + + + Here is an example of customizing the component. You can learn more about + this in the + + overrides documentation page + . + + + Checkbox demo + Checkbox demo + Checkbox demo + + demo source + + + + + + See more + + + + + + + 🎨 If you are looking for inspiration, you can check + MUI Treasury's customization examples + . + + + When to use + When to use + + + + Checkboxes vs. Radio Buttons + Checkboxes vs. Radio Buttons + + + Checkboxes vs. Switches + Checkboxes vs. Switches + + + + Accessibility + Accessibility + + + (WAI-ARIA: + https://www.w3.org/TR/wai-aria-practices/#checkbox + ) + + + + All form controls should have labels, and this includes radio buttons, + checkboxes, and switches. In most cases, this is done by using the + + + When a label can't be used, it's necessary to add an attribute + directly to the input component. In this case, you can apply the + additional attribute (e.g. aria-label , aria-labelledby , title ) via the + inputProps prop. + + When a label can't be used, it's necessary to add an attribute + directly to the input component. In this case, you can apply the + additional attribute (e.g. aria-label, aria-labelledby, title) via the + inputProps prop. + + + + + + + + API + API + + + + + + + + + + + + + + + + + + + + + + + + + Button Group + + Was this page helpful? + Was this page helpful? + Yes + No + + Floating Action Button +
; + +`; + +exports[`firefox /components/dialogs/ 2`] = ` EDIT THIS PAGE diff --git a/lib/a11y-snapshot/deploy.json b/lib/a11y-snapshot/deploy.json index 50fa61e70..3aa50aa5f 100644 --- a/lib/a11y-snapshot/deploy.json +++ b/lib/a11y-snapshot/deploy.json @@ -1,33 +1,33 @@ { - "id": "60881745667605000727eddd", + "id": "60898c05a2ecbe00070e0d4a", "site_id": "64f32322-7c26-4008-b886-60800cd747b0", - "build_id": "60881745667605000727eddb", - "state": "building", + "build_id": "60898c05a2ecbe00070e0d48", + "state": "ready", "name": "material-ui", "url": "http://material-ui.netlify.app", "admin_url": "https://app.netlify.com/sites/material-ui", - "deploy_url": "http://next--material-ui.netlify.app", - "deploy_ssl_url": "https://next--material-ui.netlify.app", - "created_at": "2021-04-27T13:53:09.963Z", - "updated_at": "2021-04-27T14:00:41.671Z", - "commit_ref": "9431d4a2e483074873c0e1f692319e9351cd8347", - "review_id": null, + "deploy_url": "http://deploy-preview-26018--material-ui.netlify.app", + "deploy_ssl_url": "https://deploy-preview-26018--material-ui.netlify.app", + "created_at": "2021-04-28T16:23:33.289Z", + "updated_at": "2021-04-28T16:40:34.501Z", + "commit_ref": "e5ea6c27cb5ae371d9395ad82a879331889c97b8", + "review_id": 26018, "skipped": null, "locked": null, - "branch": "next", - "commit_url": "https://github.com/mui-org/material-ui/commit/9431d4a2e483074873c0e1f692319e9351cd8347", + "branch": "feat/remove-createStyles", + "commit_url": "https://github.com/mui-org/material-ui/commit/e5ea6c27cb5ae371d9395ad82a879331889c97b8", "log_access_attributes": { "type": "firebase", - "url": "https://netlify-builds2.firebaseio.com/builds/60881745667605000727eddb/log", - "endpoint": "https://netlify-builds2.firebaseio.com", - "path": "/builds/60881745667605000727eddb/log", - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2IjowLCJpYXQiOjE2MTk1MzI5MDIsImQiOnsidWlkIjoiIn19.1lVe5TGHBJlN1fUEKZC2papCoaccmREol-qDkkhREJg" + "url": "https://netlify-builds5.firebaseio.com/builds/60898c05a2ecbe00070e0d48/log", + "endpoint": "https://netlify-builds5.firebaseio.com", + "path": "/builds/60898c05a2ecbe00070e0d48/log", + "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2IjowLCJpYXQiOjE2MTk2Mjg2NjcsImQiOnsidWlkIjoiIn19.2M_ehblatrW90GNQCBxjf8yOW8U-nHJXBGQbws8t_bc" }, - "title": "[docs] Avoid extracting classes twice (#25973)", - "review_url": null, + "title": "[core] Remove `createStyles` from `@material-ui/core`", + "review_url": "https://github.com/mui-org/material-ui/pull/26018", "published_at": null, - "context": "branch-deploy", - "deploy_time": null, + "context": "deploy-preview", + "deploy_time": 873, "public": true, - "plugin_state": "none" + "plugin_state": "success" }