Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/big-dodos-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@solid-design-system/docs': patch
---

Updated wording of primary buttons in form templates.
4 changes: 2 additions & 2 deletions packages/docs/src/stories/templates/forms.a11y.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test('Contact Form', async ({ page }) => {
- checkbox "I would like to receive marketing emails."
- text: I would like to receive marketing emails.
- text: "* Required fields"
- button "Submit registration"
- button "Send"
- button "Cancel"
`);
});
Expand All @@ -74,7 +74,7 @@ test('Form With Visually Disabled Elements', async ({ page }) => {
- checkbox "I would like to receive marketing emails." [disabled]
- text: I would like to receive marketing emails.
- text: "* Required fields"
- button "Submit registration" [disabled]
- button "Send" [disabled]
- button "Cancel"
`);
});
4 changes: 2 additions & 2 deletions packages/docs/src/stories/templates/forms.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const ContactForm = {
<span class="sd-meta sd-meta--size-sm">* Required fields</span>
</div>
<div class="flex flex-col gap-4 md:flex-row md:justify-end">
<sd-button class="md:order-2" type="submit">Submit registration</sd-button>
<sd-button class="md:order-2" type="submit">Send</sd-button>
<sd-button variant="secondary" class="md:order-1" onclick="alert('Cancelled process')">Cancel</sd-button>
</div>
</form>
Expand Down Expand Up @@ -185,7 +185,7 @@ export const FormWithVisuallyDisabledElements = {
size="sm"
class="button-tooltip"
>
<sd-button class="md:order-2 submit-button" type="submit" visually-disabled>Submit registration</sd-button>
<sd-button class="md:order-2 submit-button" type="submit" visually-disabled>Send</sd-button>
</sd-tooltip>
<sd-button variant="secondary" class="md:order-1" onclick="alert('Cancelled process')">Cancel</sd-button>
</div>
Expand Down
Loading