-
Notifications
You must be signed in to change notification settings - Fork 15.7k
fix: Pluralization typo for submit button #29987
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
Conversation
Correct the pluralization for the Submit button sub-heading.
|
IMO,
|
You are right about that, but I submit the correction mainly due to the context of the paragraph. Initially, when I first read the heading I thought there are different types of submit button, but there is just one type. Also, "The submit button" is used throughout the explanation, the content focuses on the general concept of the button type. I hope this clarify my intent here :) |
|
Although in this case you misinterpreted "submit buttons" as "multiple types of submit buttons", I wouldn't say it's obviously ambiguous, in the same way a section heading called |
|
Since this is more or less a stylistic choice, and not a real bug I shall rest my case after we consider this one last aspect: Perhaps it is worth considering MDN's reference for the sake of consistency. I mainly find it odd when reading the current learning material, the headers for button type I hope this make sense, thank you. :) |
|
This is only my opinion I'm offering, and a maint may well hold a different one. Looking at the rest of the headings, I actually feel instead of changing this one to singular, the other ones should be changed to plural or all changed to Personally, Edit: Looking at other headings outside of the buttons part, there are plenty others also inconsistent, like |
Yeah, that's the reason for the PR, as it is somewhat noticeable. Either way will work so long the clarity is established and it supports the lesson's flow. type : The Button element - HTML | MDN I think this is a better reference as it is a direct mirror to the subject. |
|
@AncientNimbus |
Thanks for the ping, I have update the file accordingly, and it is ready for review. |
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.
Many thanks!
We now have a new style guide rule that all note boxes must have a level 4 heading. Would you be happy to add a relevant one for the note box that the linter is pointing out? Details are in markdownlint/docs/TOP012.md
If not, let me know and I'm happy to merge the PR as it is.
Yes, I am happy to apply the fix, reviewing the lint requirement now. |
Clarify the importance of specifying button types in forms to prevent unintended submissions. Address TOP012 error.
Co-authored-by: mao-sz <[email protected]>
mao-sz
left a comment
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.
🙏
Because
A pluralization issue is found in the Form Basics learning material. Since the
submittype button creates a single button similar toresetandgeneric, the sub-heading for submit button should be singular.This PR
Update sub-header text to use singular “button” instead of “buttons”
Issue
Closes #XXXXX
Additional Information
Pull Request Requirements
location of change: brief description of changeformat, e.g.Intro to HTML and CSS lesson: Fix link textBecausesection summarizes the reason for this PRThis PRsection has a bullet point list describing the changes in this PRIssuesection