Skip to content

fix(core/button): support added for form attribute in ix-button #1793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

GayatriK2002
Copy link
Contributor

@GayatriK2002 GayatriK2002 commented Mar 24, 2025

💡 What is the current behavior?

  • Form attribute support was not available for ix-button.
  • Issue with submitting the form using form ID when the submit button is outside the form.

GitHub Issue Number: #1653

🆕 What is the new behavior?

  • Form attribute support added in ix-button.
  • Now form can be submitted using form ID when passed to form attribute.

🏁 Checklist

A pull request can only be merged if all of these conditions are met (where applicable):

  • 🦮 Accessibility (a11y) features were implemented
  • 🗺️ Internationalization (i18n) - no hard coded strings
  • 📲 Responsiveness - components handle viewport changes and content overflow gracefully
  • 📄 Documentation was reviewed/updated (pnpm run docs)
  • 🧪 Unit tests were added/updated and pass (pnpm test)
  • 📸 Visual regression tests were added/updated and pass (Guide)
  • 🧐 Static code analysis passes (pnpm lint)
  • 🏗️ Successful compilation (pnpm build, changes pushed)

👨‍💻 Help & support

Copy link

changeset-bot bot commented Mar 24, 2025

⚠️ No Changeset found

Latest commit: d68eaba

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@GayatriK2002 GayatriK2002 marked this pull request as ready for review March 24, 2025 11:21
Copy link
Collaborator

@danielleroux danielleroux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You added framework integrations but missed the html-test-app

id="create-resource-form"
#formRef="ngForm"
class="form"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which purpose has this class here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GayatriK2002 this was not addressed yet

@danielleroux
Copy link
Collaborator

@GayatriK2002 In general looks good, but please review the test app examples remove unnecessary classes and align this through the other examples also

Comment on lines 19 to 21
<div>
<ix-input label="Name:" type="text" name="name" ngModel></ix-input>
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div>
<ix-input label="Name:" type="text" name="name" ngModel></ix-input>
</div>
<ix-input label="Name:" type="text" name="name" ngModel></ix-input>

Why do we need this additional element around? Same happens inside other examples too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants