Skip to content

Commit

Permalink
fix(documentation): invalid message fix on card-control story
Browse files Browse the repository at this point in the history
  • Loading branch information
davidritter-dotcom committed Apr 30, 2024
1 parent 3517f43 commit e6b234e
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export const Default: Story = {

const content = html`${unsafeHTML(args['slots-default'])}`;
const icon = html`<span slot="icon">${unsafeHTML(args['slots-icon'])}</span>`;
const validation = html` <p class="mt-3 invalid-feedback">Eraro okazis!</p> `;

return html`
<post-card-control
Expand All @@ -112,7 +111,6 @@ export const Default: Story = {
>
${args['slots-default'] ? content : null} ${args['slots-icon'] ? icon : null}
</post-card-control>
${args.validity === 'false' ? validation : nothing}
`;
},
};
Expand Down Expand Up @@ -162,14 +160,13 @@ export const FormIntegration: Story = {
parameters: {
docs: {
controls: {
include: ['disabled fieldset', 'value', 'disabled', 'group validation'],
include: ['disabled fieldset', 'value', 'disabled', 'group validity'],
},
},
},
args: {
name: 'checkbox',
checkboxFieldset: false,
validity: 'null',
radioValue: '',
radioDisabled: '',
radioFieldset: false,
Expand Down Expand Up @@ -198,11 +195,6 @@ export const FormIntegration: Story = {
category: 'Checkbox',
},
},
validity: {
table: {
category: 'Checkbox',
},
},
radioValue: {
name: 'value',
description: 'Set the value **prefix** of the `radio` cards.',
Expand Down Expand Up @@ -234,7 +226,7 @@ export const FormIntegration: Story = {
},
},
radioValidity: {
name: 'validity',
name: 'group validity',
description:
'Defines the validation `validity` of the control. To reset validity to an undefiend state, simply remove the attribute from the control.',
control: {
Expand Down Expand Up @@ -268,7 +260,7 @@ export const FormIntegration: Story = {

const invalidFeedback = html`<p
id="radio-group-invalid-feedback"
class="d-block invalid-feedback"
class="d-inline-flex invalid-feedback"
>
Invalid feedback
</p>`;
Expand All @@ -290,7 +282,6 @@ export const FormIntegration: Story = {
label="Option ${n}"
type="radio"
name="radio"
validity="${args.groupValidation}"
value="${[args.radioValue, args.radioValue ? '_' : '', n.toString()].join('')}"
.disabled="${(n === 2 && args.radioDisabled) || nothing}"
validity="${args.radioValidity !== 'null' ? args.radioValidity : nothing}"
Expand Down

0 comments on commit e6b234e

Please sign in to comment.