Repository navigation
5.3.17 - #324
Merged
Merged
5.3.17#324
Conversation
- Added `semanticForms.setInvalid(field, message, options)` and `semanticForms.clearInvalid(field)`, which mark a field invalid from your own code with a message saying why.
- Added a `semanticFormsButton` class, which styles a button outside a form like the ones in one.
- Added a `--semanticFormsCursor` variable, for the pointer over buttons, checkboxes, selects and the like.
- Added a `data-display-format` attribute for ranges with `data-display-value`, with `{value}` standing for the value, such as `{value}%`. In a `customLayout` element, a range with `data-display-value` now keeps the `<output>` for it up to date.
- Altered `--semanticFormsPageBgColor` to now set on the page's root element too, so the page can be painted with it. Forms in dark mode now set `color-scheme: dark` so things like date pickers and scrollbars are drawn dark.
- Added a `data-semantic-forms-clear` attribute for the clear button. And clearing a field now fires a `change` event as well as an `input` event.
- Fixed a keyboard listener being added every time a form was added to the page, since the enhancement runs again for each one. There's one for all of them now.
- Fixed a form inside a `<dialog>` or a popover, or one holding only a button, shrinking to nothing.
- Fixed a field without an id not having its control enhanced, so a switch without one wasn't given its role or dragging.
- Fixed a field whose id has characters a selector gives a meaning to, such as `tag:title`, stopping the enhancement of that field and every field after it.
- Fixed a help icon or required asterisk whose title holds quotes or markup breaking the label.
- Fixed `data-auto-grow` dropping the field's name, class, and other attributes when it turns an input into a textarea.
- Fixed enhancing a textarea firing an `input` event on it, which an app would take as the user having changed it.
- Updated dependencies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
semanticForms.setInvalid(field, message, options)andsemanticForms.clearInvalid(field), which mark a field invalid from your own code with a message saying why.semanticFormsButtonclass, which styles a button outside a form like the ones in one.--semanticFormsCursorvariable, for the pointer over buttons, checkboxes, selects and the like.data-display-formatattribute for ranges withdata-display-value, with{value}standing for the value, such as{value}%. In acustomLayoutelement, a range withdata-display-valuenow keeps the<output>for it up to date.--semanticFormsPageBgColorto now set on the page's root element too, so the page can be painted with it. Forms in dark mode now setcolor-scheme: darkso things like date pickers and scrollbars are drawn dark.data-semantic-forms-clearattribute for the clear button. And clearing a field now fires achangeevent as well as aninputevent.<dialog>or a popover, or one holding only a button, shrinking to nothing.tag:title, stopping the enhancement of that field and every field after it.data-auto-growdropping the field's name, class, and other attributes when it turns an input into a textarea.inputevent on it, which an app would take as the user having changed it.