Skip to content

Commit

Permalink
[docs] Remove upload button
Browse files Browse the repository at this point in the history
The upload button example is completely inaccessible by anyone that is
not using a mouse. It lacks both support for keyboard interaction and
drag-and-drop, as well as not appearing in the accessibility tree.

See #22141 for a more detailed
discussion of the issue.
  • Loading branch information
Bastian committed Apr 11, 2023
1 parent e05f16c commit 9e563ab
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 60 deletions.
20 changes: 0 additions & 20 deletions docs/data/material/components/buttons/UploadButtons.js

This file was deleted.

20 changes: 0 additions & 20 deletions docs/data/material/components/buttons/UploadButtons.tsx

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions docs/data/material/components/buttons/buttons-pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ For larger or smaller buttons, use the `size` prop.

{{"demo": "ButtonSizes.js"}}

## Botão de upload

{{"demo": "UploadButtons.js"}}

## Botões com ícones e rótulo

Às vezes você pode querer ter ícones para certos botões para aprimorar a experiência do usuário, pois reconhecem logotipos mais facilmente do que texto. Por exemplo, se você tem um botão com a ação de "deletar", você pode rotulá-lo com o ícone de lata de lixo.
Expand Down
4 changes: 0 additions & 4 deletions docs/data/material/components/buttons/buttons-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ Note that the documentation [avoids](/material-ui/guides/api/#native-properties)

{{"demo": "ButtonSizes.js"}}

## Upload button 上传按钮

{{"demo": "UploadButtons.js"}}

## 带有 icons(图标)和 label(标签)的按钮

因为相比纯文本来说用户对图标更敏感,所以有些时候你可能希望为某些按钮设置图标,以增强应用程序的用户体验。 例如,如果您有删除按钮,则可以使用垃圾箱图标对其进行标记。
Expand Down
4 changes: 0 additions & 4 deletions docs/data/material/components/buttons/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ For larger or smaller buttons, use the `size` prop.

{{"demo": "ButtonSizes.js"}}

## Upload button

{{"demo": "UploadButtons.js"}}

## Buttons with icons and label

Sometimes you might want to have icons for certain buttons to enhance the UX of the application as we recognize logos more easily than plain text. For example, if you have a delete button you can label it with a dustbin icon.
Expand Down

0 comments on commit 9e563ab

Please sign in to comment.