-
Notifications
You must be signed in to change notification settings - Fork 1
Fix grammar error in Alert component story #368
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,9 +82,9 @@ export const WithLongStringAndWithoutCloseButton: Story = { | |
| variant: 'neutral', | ||
| content: ( | ||
| <p className="m-0"> | ||
| <b className="mr-1">Designer’s Note:</b>Adjusting or changing | ||
| <b className="mr-1">Designer's Note:</b>Adjusting or changing | ||
| components here will update it on all other pages or templates | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What: The clarification in this code does not have security issues but it is still important to ensure that the content rendered (if coming from user input) is sanitized properly to avoid XSS risks. Ensure that content is safe and properly escaped in the future. Why: Proper sanitization of inputs is vital for preventing XSS attacks. Although this particular change is benign, it is always a good practice to review how such content is handled in the rendering process to ensure security best practices are being followed. How: Make sure to employ libraries or methods that sanitize HTML such as DOMPurify for content that is likely user-generated to ensure no malicious scripts are executed. |
||
| where it is been used | ||
| where it has been used | ||
| </p> | ||
| ), | ||
| }, | ||
|
|
||
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.
What: Correct the grammar in the text for clarity, as you've already done. However, it's a good practice to review the context of grammatical changes in the entire codebase to ensure it complies with proper standards before finalizing.
Why: While the current change improves clarity, consistent grammatical standards in all parts of the codebase contribute to better readability and professionalism in documentation and comments. Ensuring that all strings are grammatically correct avoids miscommunication and enhances user experience.
How: Continuously review string literals across the codebase, looking for any further instances of unclear phrasing or common grammatical errors to improve overall quality.