Open
Conversation
…. Elemento que exibe as notas de acessibilidade texto longo
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.
O que esse PR faz?
Criado o arquivo tests/fixtures/htmlgenerator/acessibilidade/alt_text.pt.3_9.html
Este arquivo contém em seu primeiro modal, o elemento
Este elemento deve conter a descrição detalhada e completa da imagem em questão.
o Id desse elemento é importante pois ele será citado no thumbnail da imagem com o atributo
aria-describedby="descFigF1"
Desta forma, é importante enteder que:
1 - no thumbnail, temos o elemento alt. Este deve conter uma descrição curta e objetiva da imagem. Ainda no thumbnail, deve conter o atributo aria-describedby apontando o id do elemento html que conterá a descrição completa.
2 - já no modal que exibe a imagem aberta, deve conter um elemento html com o id citado no aria-describedby do thumbnail, onde estará a descrição completa e detalhada da imagem.
Onde a revisão poderia começar?
Se os testes forem feitos no projeto packtools, apenas abra o html entitulado:
tests/fixtures/htmlgenerator/acessibilidade/alt_text.pt.3_9.html
Nele, navegue até a primeira imagem que aparece em thumbnail. Ao abri será possível ver a nota de acessibilidade.
Com o modal fechado, verifique o código do thumbnail, que deve conter em seu atributo alt uma descrição curta e objetiva da imagem.
Como este poderia ser testado manualmente?
Siga os passos descritos anteriormente.
Algum cenário de contexto que queira dar?
Para que a classe scielo__accessibility-note funcione no scielo.br é importante atualizar o design system de acordo com a versão 1.1.18, contida no release atualizado abaixo:
https://github.com/scieloorg/design-system-statics/releases/tag/v1.1.18
Screenshots
Quais são tickets relevantes?
scieloorg/opac_5#291
Referências
https://www.w3.org/TR/WCAG20-TECHS/G94.html
https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA1