Closed duboisp closed 2 months ago
Align the style of gcds-sr-only with the WCAG CSS technique C7 and it avoid the 0 pixel technique because it is not recommended according to a WebAim article about invisible content just for screen reader users.
gcds-sr-only
It also remove the space taken by the component as it must be visually invisible but only visible to screen reader only.
The following tests were automated and integrated to the unit testing of the <gcds-sr-only> component
<gcds-sr-only>
offsetWidth
offsetHeight
Summary | Résumé
Align the style of
gcds-sr-only
with the WCAG CSS technique C7 and it avoid the 0 pixel technique because it is not recommended according to a WebAim article about invisible content just for screen reader users.It also remove the space taken by the component as it must be visually invisible but only visible to screen reader only.
Test instructions | Instructions pour tester la modification
The following tests were automated and integrated to the unit testing of the
<gcds-sr-only>
componentComponent are visually invisible and don't interfere with visual design
<gcds-sr-only>
component in between 2 other visually rendered component.Ensure the screen reader content are at least one pixel size
<gcds-sr-only>
component in the DOMoffsetWidth
andoffsetHeight
must be greater than 0.