Skip to content

Commit

Permalink
fix(html): add wrapper around checkbxes when in list
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Jan 4, 2022
1 parent f66d8d0 commit d2ae815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/html/src/list/list-item.jsx
Expand Up @@ -61,7 +61,7 @@ function ListItemStatic(props) {
if (legacy) {
return (
<li className={legacyListItemClasses} {...ariaAttr} {...htmlAttributes}>
{showCheckbox && <CheckboxStatic checked={checked} />}
{showCheckbox && <span className="k-checkbox-wrap"><CheckboxStatic checked={checked} /></span>}
{showIcon && <IconStatic name={iconName} />}
<span className="k-list-item-text">{children}</span>
{groupLabel !== '' && <div className="k-group">{groupLabel}</div>}
Expand All @@ -71,7 +71,7 @@ function ListItemStatic(props) {

return (
<li className={listItemClasses} {...ariaAttr} {...htmlAttributes}>
{showCheckbox && <CheckboxStatic checked={checked} />}
{showCheckbox && <span className="k-checkbox-wrap"><CheckboxStatic checked={checked} /></span>}
{showIcon && <IconStatic name={iconName} />}
<span className="k-list-item-text">{children}</span>
{groupLabel !== '' && <div className="k-list-item-group-label">{groupLabel}</div>}
Expand Down

0 comments on commit d2ae815

Please sign in to comment.