Skip to content
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

Update Avoid Styles for Heading Text Issue Description #938

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

taheralfayad
Copy link
Contributor

Kind of fixes #923. Change up the issue description to tell the user that UDOIT is not entirely sure that this is a usage of style for heading, but it is a good suspect.

An enhancing solution is absolutely needed for this issue.

@taheralfayad taheralfayad requested a review from dmols April 17, 2024 18:56
@taheralfayad taheralfayad self-assigned this Apr 17, 2024
@@ -356,7 +356,7 @@
"rule.desc.NoHeadings": "<p>If appropriate, add headings to the page to organize the content for sighted and <a href='https://en.wikipedia.org/wiki/Screen_reader' target='_blank'>screen reader</a> users. The headings should represent an accurate outline of the content</p>",
"rule.desc.ObjectMustContainText": "<p>Multimedia objects should be accompanied by a link to a transcript of the content.</p>",
"rule.desc.ObjectTagDetected": "<p>Multimedia embedded using the 'Object' tag may require the user to install a plugin for their web browser. This can create support and access issues for some users. Additionally, users on mobile devices may not be able to view the multimedia content at all. Consider using an alternative format that the user's browser can display natively.</p>",
"rule.desc.ParagraphNotUsedAsHeader": "<p>Bold and Italics are used to emphasize text, whereas headings are used to define the structure of the document. Headings like <code>h1-h6</code> are extremely useful for non-sighted users to navigate the structure of the page, and formatting a paragraph to just be big or bold, while it might visually look like a heading, does not make it one.</p>",
"rule.desc.ParagraphNotUsedAsHeader": "<p>Bold and Italics are used to emphasize text, whereas headings are used to define the structure of the document. Headings like <code>h1-h6</code> are extremely useful for non-sighted users to navigate the structure of the page, and formatting a paragraph to just be big or bold, while it might visually look like a heading, does not make it one. UDOIT has flagged this as a potential usage of style for document structure, please ensure that it is not the case.</p>",
Copy link
Contributor

Choose a reason for hiding this comment

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

Little nit-picky and might be overkill, but I feel this'll make it clearer to the user what they should look for in their html.

Suggested change
"rule.desc.ParagraphNotUsedAsHeader": "<p>Bold and Italics are used to emphasize text, whereas headings are used to define the structure of the document. Headings like <code>h1-h6</code> are extremely useful for non-sighted users to navigate the structure of the page, and formatting a paragraph to just be big or bold, while it might visually look like a heading, does not make it one. UDOIT has flagged this as a potential usage of style for document structure, please ensure that it is not the case.</p>",
"rule.desc.ParagraphNotUsedAsHeader": "<p>Bold and Italics are used to emphasize text, whereas headings are used to define the structure of the document. Headings like <code>h1-h6</code> are extremely useful for non-sighted users to navigate the structure of the page, and formatting a paragraph to just be big or bold, while it might visually look like a heading, does not make it one. UDOIT flagged this as a potential usage of style for document structure, please ensure that this is not the case when you review the html editor in the page.</p>",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would probably say "please ensure that this is not the case when you review the content in the HTML editor" or something along those lines... I believe the acronym "HTML" has to be capitalized though.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll make that change!

@dmols
Copy link
Contributor

dmols commented Apr 25, 2024

When you get a chance, @taheralfayad , I left some notes. Let me know if you agree or disagree. Besides that minor input, the changes look great.

@dmols dmols merged commit 81b5f09 into main Apr 30, 2024
2 checks passed
@dmols dmols deleted the issue/923-styles-for-document-structure branch April 30, 2024 21:32
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.

High False Positive Rate with Avoid Using Styles for Document Structure
2 participants