Merged
Conversation
Contributor
mendrew
commented
Aug 23, 2024
- patch fix(Footer): Add a11y documentation for the Footer component and use role=contentinfo by default #7378
…role=contentinfo by default (#7378) Добавилено автоматическое выставление role=contentinfo если Component="footer". Добавлен раздел по доступности с пояснениями когда и как использовать компонент с дефолтным тегом footer. Приведены примеры, где стараемся объяснить где есть смысл в footer а где лучше div. Заметили, что, возможно, использовать нативный тег footer в этом компоненте Footer было излишне, потому что этот компонент не очень похож на семантическо значение footer. Обычно в футере находится справочная информация о сайте, копирайтинг, основная навигация, ссылки на социальные сети и другой похожий контент. doka Поэтому довольно трудно написать рекомендации по доступности, когда пример использования по смыслу нарушает правила использования footer. В нашем примере, мы кладём Footer вне Group, тем самым как бы устанавливая Footer для всей страницы, что явно не то, чего мы хотели бы добиться семантически в реальности. В идеале, в v7 я бы убрал использование нативного тега footer, чтобы не ломать семантику страниц неправильным использованием, потому что, подозреваю, его чаще используют и будут использовать с декоративными целями, а не по смыслу, закладываемому в тег footer. Изменения
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
SevereCloud
approved these changes
Aug 23, 2024
inomdzhon
approved these changes
Aug 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.