Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds correct checkbox input class when is a checkbox (or radio) #590

Merged
merged 1 commit into from
Aug 26, 2019
Merged

Adds correct checkbox input class when is a checkbox (or radio) #590

merged 1 commit into from
Aug 26, 2019

Conversation

CedNet
Copy link
Contributor

@CedNet CedNet commented Aug 23, 2019

Without this, the default form-input class is used which isn't styling checkboxes or radios correctly

Without this, the default form-input class is used which isn't styling checkboxes or radios correctly
@claar claar merged commit 94378a3 into formers:master Aug 26, 2019
@claar
Copy link
Member

claar commented Aug 26, 2019

Thanks, @CedNet !

@CedNet CedNet deleted the patch-1 branch August 27, 2019 08:33
ricardosierra added a commit to SierraTecnologia/former that referenced this pull request Jun 16, 2020
* 'master' of github.com:formers/former: (47 commits)
  Support Laravel 7
  Fix errors when using rules in validation array
  Add tests
  Fix errors when using rules in validation array
  Laravel 6 support (formers#591)
  Adds correct checkbox input class when is a checkbox (or radio) (formers#590)
  Encode checkbox value to prevent XSS attack (formers#584)
  Fix the Bootstrap 4 help blocks
  Fix tabs vs spaces :)
  Fix Bootstrap 4 validation messages not being colored red
  Fix the error state for Bootstrap 4
  Fix TwitterBootstrap4 blockHelp
  Add default TwitterBootstrap4 config
  Adding support for Bootstrap 4 (formers#577)
  Add Choice field type
  Add field modifiers to store moethod signature metadata and postpone framework classes until render time
  Checkable allow setting inline, stacked, grouped via boolaen attribute
  Allow setting required via boolean attribute per formers#571
  Update README.md
  Revert "Encode select options (formers#555)"
  ...
tortuetorche added a commit to tortuetorche/former that referenced this pull request Dec 30, 2020
E.g.
{!! Former::open()->method('GET') !!}
    {!! Former::checkbox('test')->text('Test checkbox') !!}
{!! Former::close() !!}

Render:
<div class="form-check">
<input class="form-check-input" id="test" type="checkbox" name="test"
value="1">
  <label for="test" class="form-check-label">Test checkbox</label>
</div>

References:
- formers#581
- formers#590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants