Skip to content

Commit

Permalink
docs(changeset): Checkbox add required html5 attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
apuntovanini committed Jul 8, 2024
1 parent 16911aa commit 3f8d975
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .changeset/itchy-experts-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@uidu/checkbox": minor
"@uidu/guidu-website": patch
---

Checkbox add required html5 attribute
2 changes: 2 additions & 0 deletions packages/forms/checkbox/src/components/CheckboxStateless.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const CheckboxStateless = forwardRef<
fieldState,
disabled,
checked,
required,
},
ref,
) => {
Expand Down Expand Up @@ -62,6 +63,7 @@ const CheckboxStateless = forwardRef<
if (ref && typeof ref === 'function') ref(e);
element.current = e;
}}
required={required}
/>
</div>
{label && (
Expand Down
5 changes: 0 additions & 5 deletions website/public/examples.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
<link rel="manifest" href="/manifest.json" />
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<title><%= htmlWebpackPlugin.options.title %></title>
<!-- Polyfills -->
<script
crossorigin="anonymous"
src="https://polyfill.io/v3/polyfill.min.js?features=default,fetch&flags=gated"
></script>
<script id="stripe-js" src="https://js.stripe.com/v3/" async></script>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
Expand Down
5 changes: 0 additions & 5 deletions website/public/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<title><%= htmlWebpackPlugin.options.title %></title>
<!-- Polyfills -->
<script
crossorigin="anonymous"
src="https://polyfill.io/v3/polyfill.min.js?features=default,fetch&flags=gated"
></script>

<script id="stripe-js" src="https://js.stripe.com/v3/" async></script>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
Expand Down

0 comments on commit 3f8d975

Please sign in to comment.