-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix accessibility scan failures #425
Conversation
@@ -29,7 +30,6 @@ | |||
border-radius: 2px; | |||
margin-right: 8px; | |||
padding: 2px 8px; | |||
font-size: var(--wp--preset--font-size--small); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Size is already small
source/wp-content/themes/wporg-developer-2023/src/code-short-title/style.scss
Outdated
Show resolved
Hide resolved
d32e0dd
to
c8e1f09
Compare
c8e1f09
to
88565dd
Compare
} | ||
] | ||
}, | ||
"custom": { | ||
"color": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Colors picked from existing sass palette which is unused in the new theme.
Only adding what we need for now.
Adding to custom
means they are available for semantic colors in blocks but don't show in the editor palette.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with Axe Devtools on those pages and the results look good. 👍
Fixes #179
Includes fixes for
Contrast fixes are achieved by darkening the
type
text within the chip, using color shades already defined in the previous theme and ported into theme.json for reuse.Screenshots
Testing
Use Lighthouse or Axe Devtools to scan:
Scan should pass on the above items. There are outstanding issues on WP_Query which are being covered elsewhere (#413, #426)