mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-26 00:21:36 +01:00
Merge branch 'clickable-checkbox-helptext' into 'dev'
Make checkBox help text clickabe. See merge request turris/reforis/foris-js!45
This commit is contained in:
commit
48d5cf0119
|
@ -42,8 +42,10 @@ export function CheckBox({
|
||||||
|
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
<label className="custom-control-label" htmlFor={uid}>{label}</label>
|
<label className="custom-control-label" htmlFor={uid}>
|
||||||
{helpText && <small className="form-text text-muted">{helpText}</small>}
|
{label}
|
||||||
|
{helpText && <small className="form-text text-muted">{helpText}</small>}
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -18,12 +18,12 @@ exports[`<Checkbox/> Render checkbox 1`] = `
|
||||||
for="1"
|
for="1"
|
||||||
>
|
>
|
||||||
Test label
|
Test label
|
||||||
|
<small
|
||||||
|
class="form-text text-muted"
|
||||||
|
>
|
||||||
|
Some help text
|
||||||
|
</small>
|
||||||
</label>
|
</label>
|
||||||
<small
|
|
||||||
class="form-text text-muted"
|
|
||||||
>
|
|
||||||
Some help text
|
|
||||||
</small>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -45,12 +45,12 @@ exports[`<Checkbox/> Render uncheked checkbox 1`] = `
|
||||||
for="1"
|
for="1"
|
||||||
>
|
>
|
||||||
Test label
|
Test label
|
||||||
|
<small
|
||||||
|
class="form-text text-muted"
|
||||||
|
>
|
||||||
|
Some help text
|
||||||
|
</small>
|
||||||
</label>
|
</label>
|
||||||
<small
|
|
||||||
class="form-text text-muted"
|
|
||||||
>
|
|
||||||
Some help text
|
|
||||||
</small>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user