Closed greatislander closed 2 years ago
@chosww Maybe a good starting point for you would be taking a look at this ticket?
@greatislander Sounds good, I will take a look 👍
@chosww One other aspect of this that would be good to include is tests for the component. Here's some information about testing components:
https://laravel.com/docs/9.x/http-tests#rendering-blade-and-components
The button tests should follow the pattern of the other tests for other components: https://github.com/fluid-project/hearth/tree/main/tests/Components
One last note, the repository uses Conventional Commits. Linking in case you haven't used them before.
Describe the bug
Supplying a
type
to the Button component does not override the default type (submit
).To reproduce
Steps to reproduce the behavior:
type="button"
.type="submit"
.Expected behavior
The button should have
type="button"
.Screenshots
Not applicable.
Technical details
Not applicable.
Additional context or notes
https://laravel.com/docs/9.x/blade#non-class-attribute-merging