Skip to content

Commit

Permalink
Docs(web-twig): Better document void attributes like novalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Nov 30, 2023
1 parent 4adbc16 commit 5562ddc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ To mark the input as disabled, simply add the `isDisabled` attribute:
| `label` | `string` | `null` |\* | Label text |
| `maxFileSize` | `number` | `1000000` || The maximum size of the uploaded file in bytes |
| `maxUploadedFiles` | `number` | `10` || Maximum file upload queue size |
| `multiple` | `bool` | `false` || If true, multiple files can be selected |
| `multiple` | `void` | `null` || If set, [multiple files can be selected][multiple-attr] |
| `name` | `string` | `null` || Input name |
| `pickAFileText` | `string` | `Upload your file` || Text shown in the drop zone |
| `queueLimitBehavior` | [`hide` \| `disable` \| `none`] | `none` || Input behavior when the file queue is filled |
Expand Down Expand Up @@ -342,3 +342,4 @@ This is how all subcomponents build up the complete FileUploader:
[mdn-template]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template
[dictionary-validation]: https://github.com/lmc-eu/spirit-design-system/blob/main/docs/DICTIONARIES.md#validation
[escape-hatches]: https://github.com/lmc-eu/spirit-design-system/tree/main/packages/web-twig/README.md#escape-hatches
[multiple-attr]: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple
3 changes: 2 additions & 1 deletion packages/web-twig/src/Resources/components/Modal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ You can use the `maxHeightFromTabletUp` option to override the max height on tab
| `maxHeightFromTabletUp` | `string` | `null` || Max height of the modal. Accepts any valid CSS value. |
| `method` | [`get` \| `post` \| `dialog`] | `null` || `elementType="form"` only: HTTP method to use for form submission |
| `name` | `string` | `null` || `elementType="form"` only: Name of the form |
| `novalidate` | `bool` | `false` || `elementType="form"` only: If the dialog should have validation disabled |
| `novalidate` | `void` | `null` || `elementType="form"` only: [If the dialog should have validation disabled][novalidate-attr] |
| `preferredHeightFromTabletUp` | `string` | `null` || Preferred height of the modal on tablet and larger. Accepts any valid CSS value. |
| `preferredHeightOnMobile` | `string` | `null` || Preferred height of the modal on mobile. Accepts any valid CSS value. |
| `rel` | `string` | `null` || `elementType="form"` only: Relationship between the current document and the linked resource |
Expand Down Expand Up @@ -341,6 +341,7 @@ Or, feel free to write the controlling script yourself.
[mdn-dialog]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
[mdn-dialog-form]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#usage_notes
[autocomplete-attr]: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
[novalidate-attr]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#novalidate
[dictionary-alignment]: https://github.com/lmc-eu/spirit-design-system/blob/main/docs/DICTIONARIES.md#alignment
[escape-hatches]: https://github.com/lmc-eu/spirit-design-system/tree/main/packages/web-twig/README.md#escape-hatches
[scroll-view]: https://github.com/lmc-eu/spirit-design-system/blob/main/packages/web-twig/src/Resources/components/ScrollView/README.md

0 comments on commit 5562ddc

Please sign in to comment.