Skip to content

Commit

Permalink
fix(radio-panel): wrap correct component for react radiopanal
Browse files Browse the repository at this point in the history
CdsRadioPanel previously wrapped cds-radio, not cds-radio-panel

Fixes vmware-clarity#24

Signed-off-by: Ashley Ryan <asryan@vmware.com>
  • Loading branch information
Ashley Ryan committed Apr 14, 2022
1 parent b291924 commit 4b2ccda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`CdsRadioPanel snapshot 1`] = `
<CdsRadioPanel
l={null}
>
<cds-radio
<cds-radio-panel
l={null}
>
<label>
Expand All @@ -15,7 +15,7 @@ exports[`CdsRadioPanel snapshot 1`] = `
<input
type="checkbox"
/>
</cds-radio>
</cds-radio-panel>
</CdsRadioPanel>
</CdsRadioPanel>
</div>
Expand Down
2 changes: 1 addition & 1 deletion projects/react/src/selection-panels/radio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { createComponent } from '@lit-labs/react';
import * as React from 'react';
import { logReactVersion } from '../../utils/index.js';

export const CdsRadioPanel = createComponent(React, 'cds-radio', RadioPanel, {}, 'CdsRadioPanel');
export const CdsRadioPanel = createComponent(React, 'cds-radio-panel', RadioPanel, {}, 'CdsRadioPanel');

logReactVersion(React);

0 comments on commit 4b2ccda

Please sign in to comment.