diff --git a/theme/keywind/login/components/atoms/checkbox.ftl b/theme/keywind/login/components/atoms/checkbox.ftl index e47fd619a..af8b77b54 100644 --- a/theme/keywind/login/components/atoms/checkbox.ftl +++ b/theme/keywind/login/components/atoms/checkbox.ftl @@ -1,15 +1,32 @@ -<#macro kw checked=false label="" name="" rest...> +<#macro + kw + autofocus=false + checked=false + disabled=false + id="" + invalid=false + label="" + name="" + required=false + rest... +>
autofocus + <#if disabled>disabled + <#if required>required <#if checked>checked + aria-invalid="${invalid?c}" class="border-secondary-200 h-4 rounded text-primary-600 w-4 focus:ring-primary-200 focus:ring-opacity-50" - id="${name}" + id="<#if id=="">${name}<#else>${id}" name="${name}" type="checkbox" <#list rest as attrName, attrValue> - ${attrName}="${attrValue}" + <#if attrValue!=""> + ${attrName}="${attrValue}" + >