Skip to content

Commit

Permalink
Version the contrast CSS & add support for block theme override colors
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jun 27, 2024
1 parent ed95910 commit 2ce64c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/toolbar/css/a11y-contrast.css
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
:not(:empty) u:before, :not(:empty) ul:after, :not(:empty) ul:before,
:not(:empty) var:after, :not(:empty) var:before, :not(:empty)
xmp:after, :not(:empty) xmp:before, :root:not(HTML), :root:not(HTML)
:not(:empty) {
:not(:empty), .wp-block-group, .has-text-color {
background: black !important;
background-color: black !important;
background-image: none !important;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-accessibility-toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function wpa_toolbar_enqueue_scripts() {
$plugin_path = get_stylesheet_directory_uri() . '/a11y-contrast.css';
}
$plugin_path = array(
'path' => $plugin_path,
'path' => add_query_arg( 'version', $wpa_version, $plugin_path ),
);
wp_localize_script( 'ui-a11y', 'wpa11y', $plugin_path );

Expand Down

0 comments on commit 2ce64c2

Please sign in to comment.