diff --git a/packages/block-editor/CHANGELOG.md b/packages/block-editor/CHANGELOG.md index d94f6478b6e17b..bb10214773b0ef 100644 --- a/packages/block-editor/CHANGELOG.md +++ b/packages/block-editor/CHANGELOG.md @@ -5,6 +5,7 @@ ### Enhancements - Publish the package's TypeScript declarations, so consumers get its types ([#85036](https://github.com/WordPress/gutenberg/pull/85036)). +- Edit as HTML: Show the block HTML textarea's focus ring with the design system's outline instead of a legacy box-shadow, so it is also visible in high contrast mode ([#85266](https://github.com/WordPress/gutenberg/pull/85266)). ### Bug Fixes diff --git a/packages/block-editor/src/components/block-list/content.scss b/packages/block-editor/src/components/block-list/content.scss index cbbebb2ef24b3d..23fbc83e92b48c 100644 --- a/packages/block-editor/src/components/block-list/content.scss +++ b/packages/block-editor/src/components/block-list/content.scss @@ -383,7 +383,8 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b } &:focus { - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); + @include outset-ring__focus(); + outline-offset: calc(-1 * var(--wpds-border-width-focus)); } }