Skip to content

Commit

Permalink
update: styles for cover block on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
up1512001 committed Jul 28, 2024
1 parent f832445 commit d96ec6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@
opacity: 0.5;
}

/**
* To support key board navigation, focus styles are added to the cover block.
*/
&:focus,
&:focus-visible,
&:focus-within {
outline: -webkit-focus-ring-color auto 1px;
}

// The following styles are needed to support legacy blocks added prior to the update
// that moved opacity to a nested span.
// https://github.com/WordPress/gutenberg/pull/35065
Expand Down

0 comments on commit d96ec6b

Please sign in to comment.