Skip to content

Commit

Permalink
Remove rule and nobreak args from checklist/radiolist stories to simp…
Browse files Browse the repository at this point in the history
…lify them.
  • Loading branch information
dgibson666 committed Dec 19, 2024
1 parent a89d7f5 commit a9a0afd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ ChecklistHorizontal.args = {



const ChecklistMultiColumnTemplate = ({ checkboxes, gap, columns, width, rule, nobreak, label, description, fieldId, group, error, context, sx }) => {
const ChecklistMultiColumnTemplate = ({ checkboxes, gap, columns, width, label, description, fieldId, group, error, context, sx }) => {
return `
<cbp-form-field
${label ? `label="${label}"` : ''}
Expand All @@ -150,12 +150,10 @@ const ChecklistMultiColumnTemplate = ({ checkboxes, gap, columns, width, rule, n
${context && context != 'light-inverts' ? `context=${context}` : ''}
${sx ? `sx=${JSON.stringify(sx)}` : ''}
>
<cbp-multicol
<cbp-multicol nobreak
${gap ? `gap="${gap}"` : ''}
${columns ? `columns="${columns}"` : ''}
${width ? `width="${width}"` : ''}
${rule ? `rule="${rule}"` : ''}
${nobreak ? `nobreak="${nobreak}"` : ''}
>
${generateCheckboxes(context, checkboxes)}
</cbp-multicol>
Expand All @@ -168,8 +166,6 @@ ChecklistMultiColumn.args = {
gap: 'var(--cbp-space-4x)',
columns: '3',
width: '10rem',
rule: '',
nobreak: true,
checkboxes: [
{
label: "Checkbox 1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ RadioListHorizontal.args = {



const RadioListMultiColumnTemplate = ({ radios, gap, columns, width, rule, nobreak, label, description, fieldId, group, error, context, sx }) => {
const RadioListMultiColumnTemplate = ({ radios, gap, columns, width, label, description, fieldId, group, error, context, sx }) => {
return `
<cbp-form-field
${label ? `label="${label}"` : ''}
Expand All @@ -150,12 +150,10 @@ const RadioListMultiColumnTemplate = ({ radios, gap, columns, width, rule, nobre
${context && context != 'light-inverts' ? `context=${context}` : ''}
${sx ? `sx=${JSON.stringify(sx)}` : ''}
>
<cbp-multicol
<cbp-multicol nobreak
${gap ? `gap="${gap}"` : ''}
${columns ? `columns="${columns}"` : ''}
${width ? `width="${width}"` : ''}
${rule ? `rule="${rule}"` : ''}
${nobreak ? `nobreak="${nobreak}"` : ''}
>
${generateRadios(context, radios)}
</cbp-multicol>
Expand All @@ -168,8 +166,6 @@ RadioListMultiColumn.args = {
gap: 'var(--cbp-space-4x)',
columns: '3',
width: '6rem',
rule: '',
nobreak: true,
radios: [
{
label: "Radio 1",
Expand Down

0 comments on commit a9a0afd

Please sign in to comment.