Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/components/alert/alert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export const WithLongStringAndWithoutCloseButton: Story = {
variant: 'neutral',
content: (
<p className="m-0">
<b className="mr-1">Designers Note:</b>Adjusting or changing
<b className="mr-1">Designer&apos;s Note:</b>Adjusting or changing
components here will update it on all other pages or templates
Copy link
Copy Markdown

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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>
),
},
Expand Down