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

removed deleted rules from constants.js #698

Merged
merged 2 commits into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ PHPALLY_SUGGESTION_RULES="
ContentTooLong,
InputImageNotDecorative,
NoHeadings,
ObjectInterfaceIsAccessible,
ObjectShouldHaveLongDescription,
ObjectTagDetected,
ParagraphNotUsedAsHeader,
PreShouldNotBeUsedForTabularValues
Expand Down
3 changes: 0 additions & 3 deletions assets/js/Components/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const issueRuleIds = [
"CssTextHasContrast",
"CssTextStyleEmphasize",
"DocumentReadingDirection",
"EmbedHasAssociatedNoEmbed",
"FontIsNotUsed",
"HeadersHaveText",
"HeadingsInOrder",
Expand All @@ -23,9 +22,7 @@ export const issueRuleIds = [
"InputImageNotDecorative",
"MarqueeIsNotUsed",
"NoHeadings",
"ObjectInterfaceIsAccessible",
"ObjectMustContainText",
"ObjectShouldHaveLongDescription",
"ObjectTagDetected",
"ParagraphNotUsedAsHeader",
"PreShouldNotBeUsedForTabularValues",
Expand Down
7 changes: 0 additions & 7 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@
"rule.label.CssTextHasContrast": "Insufficient Text Color Contrast With the Background",
"rule.label.CssTextStyleEmphasize": "Avoid Using Color Alone for Emphasis",
"rule.label.DocumentReadingDirection": "Document Reading Direction",
"rule.label.EmbedHasAssociatedNoEmbed": "All 'embed' Elements Must Have an Associated 'noembed' Element",
"rule.label.FontIsNotUsed": "Font Tag Should Not Be Used",
"rule.label.HeadersHaveText": "Headings Should Contain Text",
"rule.label.HeadingsInOrder": "Heading Levels Should Not Be Skipped",
Expand All @@ -300,9 +299,7 @@
"rule.label.InputImageNotDecorative": "Input Images Should Have an \"alt\" Attribute",
"rule.label.MarqueeIsNotUsed": "Marquee Tag Should Not Be Used",
"rule.label.NoHeadings": "Headings Should Be Used in Content",
"rule.label.ObjectInterfaceIsAccessible": "Object Interface Must Be Accessible",
"rule.label.ObjectMustContainText": "Multimedia Objects Should Have Text Equivalents",
"rule.label.ObjectShouldHaveLongDescription": "Object Should Have Long Description",
"rule.label.ObjectTagDetected": "Object Tag Detected",
"rule.label.ParagraphNotUsedAsHeader": "Avoid Using Styles for Document Structure",
"rule.label.PreShouldNotBeUsedForTabularValues": "\"Pre\" Elements Should Not Be Used for Tabular Data",
Expand All @@ -324,7 +321,6 @@
"rule.desc.CssTextHasContrast": " <p>Text color should be easily viewable and should not be the only indicator of meaning or function. Color balance should have at least a 4.5:1 ratio for small text and 3:1 ratio for large text. Warning: using UDOIT to fix one section of text may invalidate the contrast in nested sections of text that are not the same color.</p>",
"rule.desc.CssTextStyleEmphasize": "<p>When emphasizing text, you may use color with sufficient contrast as long as you also apply some other form of emphasis, such as bold or italics. This ensures that screen reader users are aware of the text's importance.</p>",
"rule.desc.DocumentReadingDirection": "<p>Changes in text direction in inline content should be indicated using any HTML element (for example, <code>span</code>) with a 'dir' attribute indicating left-to-right or right-to-left. For example, a Hebrew phrase within an english paragraph should have it's own text direction indicated.</p>",
"rule.desc.EmbedHasAssociatedNoEmbed": "<p>Because some users cannot use the <code>embed</code> element, provide alternative content in a <code>noembed</code> element.</p>",
"rule.desc.FontIsNotUsed": "<p>The <code>font</code> tag is deprecated and should not be used. Investigate using stylesheets instead.</p>",
"rule.desc.HeadersHaveText": "<p>Sighted and <a href='https://en.wikipedia.org/wiki/Screen_reader' target='_blank'>screen reader</a> users depend on headings to organize the content on the page. Headings should not be empty and should represent an accurate outline of the content</p>",
"rule.desc.HeadingsInOrder": "Nest headings by their rank (or level). The most important heading has the rank 1 (h1) in HTML files or rank 2 (h2) in Canvas pages, the least important heading rank 6 (h6). Headings with an equal or higher rank start a new section, headings with a lower rank start new subsections that are part of the higher ranked section. Skipping heading ranks can be confusing and should be avoided.",
Expand All @@ -338,9 +334,7 @@
"rule.desc.InputImageNotDecorative": "<p>Every form image button which has text within the image (say, a picture of the word 'Search' in a special font), should have the same text within the 'alt' attribute.</p>",
"rule.desc.MarqueeIsNotUsed": "<p>The <code>marquee</code> element is difficult for users to read and is not a standard HTML element. Try to find another way to convey the importance of this text.</p>",
"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.ObjectInterfaceIsAccessible": "<p>Object content should be assessed for accessibility. Objects cannot be checked using automated tools, this should be reviewed manually.</p>",
"rule.desc.ObjectMustContainText": "<p>Multimedia objects should be accompanied by a link to a transcript of the content.</p>",
"rule.desc.ObjectShouldHaveLongDescription": "<p>Objects might require a long description, especially if their content is complicated.</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.PreShouldNotBeUsedForTabularValues": "<p>If a <code>pre</code> element is used for tabular data, change the data to use a well-formed table.</p>",
Expand All @@ -354,7 +348,6 @@

"rule.example.AnchorLinksToSoundFilesNeedTranscripts": "<h5>Wrong</h5><code>&lt;a href='interview.mp3'&gt;Listen to the interview&lt;/a&gt;</code><h5>Right</h5><code>&lt;a href='interview.mp3'&gt;Listen to the interview&lt;/a&gt; &lt;a href='transcript.html'&gt;(transcript)&lt;/a&gt;</code>",
"rule.example.BlinkIsNotUsed": "<h5>Wrong</h5><p><code>&lt;blink&gt;Please read me!&lt;/blink&gt;</code></p><h5>Right</h5><p><code>&lt;strong&gt;Please read me!&lt;/strong&gt;</code></p>",
"rule.example.EmbedHasAssociatedNoEmbed": "<h5>Wrong</h5><p><code>&lt;embed src='html.mov'/&gt;</code></p><h5>Right</h5><p><code>&lt;embed src='html.mov'/&gt;&lt;noembed&gt;A movie with &lt;a href='transcript.html'&gt;an available transcript&lt;/a&gt;.&lt;/embed&gt;</code></p>",
"rule.example.ImageAltNotPlaceholder": "<h5>Wrong</h5><p><code>&lt;img src='dog.jpg' alt='image'&gt;</code></p><h5>Right</h5><p><code>&lt;img src='dog.jpg' alt='A photograph of a dog'&gt;</code></p>",
"rule.example.ImageHasLongDescription": "<h5>Wrong</h5><p><code>&lt;img src='complexImage.png' alt='A complex image that cannot be described succinctly.'&gt;</code></p><h5>Right</h5><p><code>&lt;img src='complexImage.png' alt='A complex image that cannot be described succinctly.' longdesc='longer_description.html'&gt;</code></p>",
"rule.example.InputImageNotDecorative": "<h5>Wrong</h5><p><code>&lt;input type='image' src='search.png' alt='A pretty picture'/&gt;</code></p><h5>Right</h5><p><code>&lt;input type='image' src='search.png' alt='Search this site'/&gt;</code></p>",
Expand Down
7 changes: 0 additions & 7 deletions translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@
"rule.label.CssTextHasContrast": "Contraste insuficiente del color del texto con el fondo",
"rule.label.CssTextStyleEmphasize": "Evite usar el color solo para enfatizar",
"rule.label.DocumentReadingDirection": "Dirección de lectura del documento",
"rule.label.EmbedHasAssociatedNoEmbed": "Todos los elementos 'embed' deben tener un elemento 'noembed' asociado",
"rule.label.FontIsNotUsed": "La etiqueta de fuente no debe usarse",
"rule.label.HeadersHaveText": "Los encabezados deben contener texto",
"rule.label.ImageAltIsDifferent": "El texto alternativo no debe ser el nombre del archivo de imagen",
Expand All @@ -297,9 +296,7 @@
"rule.label.InputImageNotDecorative": "",
"rule.label.MarqueeIsNotUsed": "La etiqueta de marquesina no debe usarse",
"rule.label.NoHeadings": "Los encabezados deben usarse en el contenido",
"rule.label.ObjectInterfaceIsAccessible": "La interfaz del objeto debe ser accesible",
"rule.label.ObjectMustContainText": "Los objetos multimedia deben tener equivalentes de texto",
"rule.label.ObjectShouldHaveLongDescription": "El objeto debe tener una descripción larga",
"rule.label.ObjectTagDetected": "Etiqueta de objeto detectada",
"rule.label.ParagraphNotUsedAsHeader": "Evite el uso de estilos para la estructura del documento",
"rule.label.PreShouldNotBeUsedForTabularValues": "Los elementos \"pre\" no deben usarse para datos tabulares",
Expand All @@ -321,7 +318,6 @@
"rule.desc.CssTextHasContrast": " <p>El color del texto debe ser fácilmente visible y no debe ser el único indicador de significado o función. El balance de color debe tener al menos una proporción de 4.5:1 para texto pequeño y una proporción de 3:1 para texto grande. Advertencia: el uso de UDOIT para corregir una sección de texto puede invalidar el contraste en secciones de texto anidadas que no son del mismo color.</p>",
"rule.desc.CssTextStyleEmphasize": "<p>Al enfatizar el texto, puede usar colores con suficiente contraste siempre que también aplique alguna otra forma de énfasis, como negrita o cursiva. Esto asegura que los usuarios de lectores de pantalla sean conscientes de la importancia del texto.</p>",
"rule.desc.DocumentReadingDirection": "<p>Los cambios en la dirección del texto en el contenido en línea deben indicarse mediante cualquier elemento HTML (por ejemplo, <code>span</code>) con un atributo 'dir' que indique de izquierda a derecha o de derecha a izquierda. Por ejemplo, una frase hebrea dentro de un párrafo en inglés debe tener su propia dirección de texto indicada.</p>",
"rule.desc.EmbedHasAssociatedNoEmbed": "<p>Debido a que algunos usuarios no pueden usar el elemento <code>embed</code>, proporcione contenido alternativo en un elemento <code>noembed</code>.</p>",
"rule.desc.FontIsNotUsed": "<p>La etiqueta <code>font</code> está obsoleta y no debe utilizarse. Investigar usando hojas de estilo en su lugar.</p>",
"rule.desc.HeadersHaveText": "<p>Los usuarios videntes y <a href='https://es.wikipedia.org/wiki/Lector_de_pantalla' target='_blank'>lectores de pantalla</a> dependen de los encabezados para organizar el contenido de la página. Los títulos no deben estar vacíos y deben representar un esquema preciso del contenido.</p>",
"rule.desc.ImageAltIsDifferent": "<p>El texto alternativo (Alt Text) es una forma alternativa (no visual) de describir el significado de una imagen. Proporciona una breve descripción de la imagen para un usuario de <a href='https://es.wikipedia.org/wiki/Lector_de_pantalla'>lector de pantalla</a>. Nota: No debe ser el nombre del archivo de imagen.</p> <p>Obtenga más información en WebAIM.org: <a href='https://webaim.org/techniques/alttext/' target='_blank'>Accesibilidad de texto alternativo</a></p>",
Expand All @@ -334,9 +330,7 @@
"rule.desc.InputImageNotDecorative": "<p>Cada botón de imagen de formulario que tiene texto dentro de la imagen (por ejemplo, una imagen de la palabra 'Buscar' en una fuente especial), debe tener el mismo texto dentro del atributo 'alt'.</p>",
"rule.desc.MarqueeIsNotUsed": "<p>El elemento <code>marquee</code> es difícil de leer para los usuarios y no es un elemento HTML estándar. Intente encontrar otra forma de transmitir la importancia de este texto.</p>",
"rule.desc.NoHeadings": "<p>Si corresponde, agregue títulos a la página para organizar el contenido para usuarios videntes y <a href='https://es.wikipedia.org/wiki/Lector_de_pantalla' target='_blank'>lectores de pantalla</a>. Los títulos deben representar un esquema preciso del contenido.</p>",
"rule.desc.ObjectInterfaceIsAccessible": "<p>Se debe evaluar la accesibilidad del contenido del objeto. Los objetos no se pueden verificar con herramientas automatizadas, esto debe revisarse manualmente.</p>",
"rule.desc.ObjectMustContainText": "<p>Los objetos multimedia deben ir acompañados de un enlace a una transcripción del contenido.</p>",
"rule.desc.ObjectShouldHaveLongDescription": "<p>Los objetos pueden requerir una descripción larga, especialmente si su contenido es complicado.</p>",
"rule.desc.ObjectTagDetected": "<p>Los archivos multimedia incrustados con la etiqueta 'Objeto' pueden requerir que el usuario instale un complemento para su navegador web. Esto puede crear problemas de soporte y acceso para algunos usuarios. Además, es posible que los usuarios de dispositivos móviles no puedan ver el contenido multimedia en absoluto. Considere utilizar un formato alternativo que el navegador del usuario pueda mostrar de forma nativa.</p>",
"rule.desc.ParagraphNotUsedAsHeader": "<p>La negrita y la cursiva se utilizan para enfatizar el texto, mientras que los títulos se utilizan para definir la estructura del documento. Los encabezados como <code>h1-h6</code> son extremadamente útiles para que los usuarios no videntes naveguen por la estructura de la página, y dar formato a un párrafo para que sea grande o en negrita, aunque visualmente puede parecer un encabezado, no lo hace uno.</p>",
"rule.desc.PreShouldNotBeUsedForTabularValues": "<p>Si se usa un elemento <code>pre</code> para datos tabulares, cambie los datos para usar una tabla bien formada.</p>",
Expand All @@ -350,7 +344,6 @@

"rule.example.AnchorLinksToSoundFilesNeedTranscripts": "<h5>Incorrecto</h5><code>&lt;a href='interview.mp3'&gt;Escuche la entrevista&lt;/a&gt;</code><h5>Correcto</h5><code>&lt;a href='interview.mp3'&gt;Escuche la entrevista&lt;/a&gt;&lt;a href='transcript.html'&gt;(transcripción)&lt;/a &gt;</code><h5>Incorrecto</h5><code>&lt;a href='interview.mp3'&gt;Escuche la entrevista&lt;/a& gt;</code><h5>Correcto</h5><code>&l; a href='interview.mp3'&gt;Escuche la entrevista&lt;/a&gt;&lt; a href='transcript.html'&gt;(transcripción)&lt;/a&gt;</code>",
"rule.example.BlinkIsNotUsed": "<h5>Incorrecto</h5><p><code>&lt;blink&gt;¡Léame!&lt;/blink&gt;</code></p><h5>Correcto</h5><p><code>&lt;strong&gt;¡Léame!&lt;/strong&gt;</code></p>",
"rule.example.EmbedHasAssociatedNoEmbed": "<h5>Incorrecto</h5><p><code>&lt;embed src='html.mov'/&gt;</code></p><h5>Correcto</h5><p><code>&lt;embed src='html.mov'/&gt;&lt;noembed&gt;Una película con &lt;a href='transcript.html'&gt;una transcripción disponiblet&lt;/a&gt;.&lt;/embed&gt;</code></p>",
"rule.example.ImageAltNotPlaceholder": "<h5>Incorrecto</h5><p><code>&lt;img src='dog.jpg' alt='image'&gt;</code></p><h5>Correcto</h5><p><code>&lt;img src='dog.jpg' alt='A photograph of a dog'&gt;</code></p>",
"rule.example.ImageHasLongDescription": "<h5>Incorrecto</h5><p><code>&lt;img src='complexImage.png' alt='Una imagen compleja que no se puede describir de manera breve.'&gt;</code></p><h5>Correcto</h5><p><code>&lt;img src='complexImage.png' alt='Una imagen compleja que no se puede describir de manera breve.' longdesc='longer_description.html'&gt;</code></p>",
"rule.example.InputImageNotDecorative": "<h5>Incorrecto</h5><p><code>&lt;input type='image' src='search.png' alt='Una bonita foto'/&gt;</code></p><h5>Correcto</h5><p><code>&lt;input type='image' src='search.png' alt='Busca este sitio'/&gt;</code></p>",
Expand Down