Skip to content

Commit

Permalink
Rich text: remove inline display warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 20, 2021
1 parent 4060caa commit c42e4d1
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 31 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/file/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ function FileEdit( {
) }
<div className={ 'wp-block-file__content-wrapper' }>
<RichText
style={ { display: 'inline-block' } }
tagName="a" // must be block-level or else cursor disappears
tagName="a"
value={ fileName }
placeholder={ __( 'Write file name…' ) }
withoutInteractiveFormatting
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/query-pagination-next/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default function QueryPaginationNextEdit( {
<PlainText
__experimentalVersion={ 2 }
tagName="a"
style={ { display: 'inline-block' } }
aria-label={ __( 'Next page link' ) }
placeholder={ __( 'Next Page' ) }
value={ label }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default function QueryPaginationPreviousEdit( {
<PlainText
__experimentalVersion={ 2 }
tagName="a"
style={ { display: 'inline-block' } }
aria-label={ __( 'Previous page link' ) }
placeholder={ __( 'Previous Page' ) }
value={ label }
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/site-title/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export default function SiteTitleEdit( {
<TagName { ...blockProps }>
<RichText
tagName="a"
style={ { display: 'inline-block' } }
aria-label={ __( 'Site title text' ) }
placeholder={ __( 'Write site title…' ) }
value={ title }
Expand Down
2 changes: 0 additions & 2 deletions packages/rich-text/src/component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { apply } from '../to-dom';
import { toHTMLString } from '../to-html-string';
import { useDefaultStyle } from './use-default-style';
import { useBoundaryStyle } from './use-boundary-style';
import { useInlineWarning } from './use-inline-warning';
import { useCopyHandler } from './use-copy-handler';
import { useFormatBoundaries } from './use-format-boundaries';
import { useSelectObject } from './use-select-object';
Expand Down Expand Up @@ -178,7 +177,6 @@ export function useRichText( {
ref,
useDefaultStyle(),
useBoundaryStyle( { record } ),
useInlineWarning(),
useCopyHandler( { record, multilineTag, preserveWhiteSpace } ),
useSelectObject(),
useFormatBoundaries( { record, applyRecord } ),
Expand Down
24 changes: 0 additions & 24 deletions packages/rich-text/src/component/use-inline-warning.js

This file was deleted.

0 comments on commit c42e4d1

Please sign in to comment.