db-ui / mono

DB UX Design System Monorepo - Provides Design Tokens and components for Web UIs
https://db-ui.github.io/mono/review/main/
Apache License 2.0
35 stars 6 forks source link

chore(deps): bump sa11y from 3.1.5 to 3.2.0 #2717

Closed dependabot[bot] closed 1 week ago

dependabot[bot] commented 1 week ago

Bumps sa11y from 3.1.5 to 3.2.0.

Release notes

Sourced from sa11y's releases.

Sa11y 3.2.0

New “Images” tab

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 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 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)
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
github-actions[bot] commented 1 week ago

🔭🐙🐈 Test this branch here: https://db-ui.github.io/mono/review/dependabot-npm_and_yarn-sa11y-3.2.0

dependabot[bot] commented 1 week ago

Superseded by #2736.