-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
feat(alert): alert input custom attributes #21365
feat(alert): alert input custom attributes #21365
Conversation
npm run build process in core directory upgraded slides/swiper/swiper.bundle.js. I am not sure if it belongs here. Edit; test-core-clean-build fails because of this file. |
8bc2c79
to
9454e55
Compare
I rebased all to current master to resolve the issue. I removed that commit and updated the branch. Now, all checks have passed and the change looks fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far! We are discussing how we want to document this, but the functionality works well.
onInput is essential for passing value changes on dissmiss
Warning: The "value" prop of <input> should be set after "min", "max", "type" and "step"
'alert-input' and 'alert-input-disabled' classes are important for consistent ionic style.
Overriding disabled with attributes.disabled causes mixed state and classes. This change fixes the issue.
The latest change lets the user completely override all attributes except onInput, class and disabled. The reason behind this is overriding these attributes can cause unexpected issues.
Users are still able to set these attributes but they are not overridden completely. They are merged for an optimum solution, please check and comment on the end result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! A few more small things I noticed.
Applied suggestions from code review Co-authored-by: Liam DeBeasi <[email protected]>
…ionic into alert-input-attributes
Results in false.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last comment then I think we're good to go 😄
resolved the conflicts for the latest master branch 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
No custom attributes can be added for the inputs in the alert controller. Maxlength, pattern, class etc. attributes can be greatly useful when added to the inputs in the alert controller. I think we should be able to add such features.
Issue Number: resolves #21202, #21290, #7819
What is the new behavior?
This change introduces 'cssClass' and 'attributes' properties for inputs.
Does this introduce a breaking change?
Other information