-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## New “Images” panel The Images tab makes it easy to review all images and their corresponding alt text within a page. This feature is inspired by Editoria11y’s Alt Text tab! ### Edit button for images **Experimental feature:** Each image within the Images panel can display an "Edit" button, offering users convenient editing options. Multiple props are available to support implementations for various content management systems: `editImageURLofCMS`, `relativePathImageSRC`, and `relativePathImageID`. The edit button is selectively displayed for locally hosted images on the same domain. Explore [props & methods](https://sa11y.netlify.app/developers/props/) page for documentation. ## Interface enhancements - Tooltips have a refreshed design, for a consistent look with the Images panel. Yellow and red text colours are used consistently depending on whether it’s an error or warning. - When using the Colour Filters feature, surrounding settings will disappear. This makes Sa11y’s panel more compact during page review. ## Rulesets - The check for suspicious alt text words, such as "image of" or "photo of," now examines the first 6 characters of a string for the presence of stop words. This adjustment aims to reduce unnecessary warnings, considering that these words can be relevant in certain contexts, like "A black and white photo of a car." - The word "thumbnail" has been included in the alt text stop words for English files. Consequently, images starting with the word "thumbnail" will now trigger a warning. ## Developers - **New prop:** `aboutContent` allows for the inclusion of a custom "About" or "Help" section within the Settings panel. This prop, a string accepting HTML content, should only ever be populated by developers and admins to mitigate XSS attacks. - **New Prop:** Developers can overwrite the `SUSPICIOUS_ALT_STOPWORDS` array (e.g. image of, graphic of) within the language files via the `susAltStopWords` prop. - **New Prop:** Developers can overwrite the `WARNING_ALT_STOPWORDS` array (e.g. click here) within the language files via the `linkStopWords` prop. - **New Prop:** Add additional stop words to flag at the beginning of an alt text string as a placeholder error via the `extraPlaceholderStopWords` prop. For example, pass the word “untitled” to flag any image who’s alt text starts with “untitled”. - **Enhancement:** `detectSPArouting` feature listens for `click` events instead of `mousemove` for better performance. Explore [props & methods](https://sa11y.netlify.app/developers/props/) page for documentation. ## Bug fixes - Resolved an issue with the automatic detection of shadow DOM elements on the page. - Resolved an issue where unique characters are not encoded via CSV export. - Implemented support for `color-mix` for colour contrast checking. Thanks to @nmerget! (Issue #85) - Resolved a false positive in the document link check. URLs like `https://press.un.org/en/2022/sc14904.doc.htm` will no longer trigger warnings due to ".doc" in the URL. Thanks to @gregrgay! (Issue #86)
- Loading branch information
1 parent
caf6f92
commit 12cdb95
Showing
199 changed files
with
10,847 additions
and
7,944 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.