diff --git a/packages/block-library/src/form/edit.js b/packages/block-library/src/form/edit.js index a7260afabedf39..227f5ea05014ff 100644 --- a/packages/block-library/src/form/edit.js +++ b/packages/block-library/src/form/edit.js @@ -123,6 +123,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => { help={ __( 'The email address where form submissions will be sent. Separate multiple email addresses with a comma.' ) } + type="email" /> ) } @@ -159,6 +160,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => { help={ __( 'The URL where the form should be submitted.' ) } + type="url" /> ) } diff --git a/packages/block-library/src/navigation-link/edit.js b/packages/block-library/src/navigation-link/edit.js index 5966739aa61a61..dcd13cdd16bd0d 100644 --- a/packages/block-library/src/navigation-link/edit.js +++ b/packages/block-library/src/navigation-link/edit.js @@ -202,6 +202,7 @@ function Controls( { attributes, setAttributes, setIsLabelFieldFocused } ) { ); } } autoComplete="off" + type="url" /> diff --git a/packages/block-library/src/navigation-submenu/edit.js b/packages/block-library/src/navigation-submenu/edit.js index dbdbd23b13b2f6..a1ce7bec748959 100644 --- a/packages/block-library/src/navigation-submenu/edit.js +++ b/packages/block-library/src/navigation-submenu/edit.js @@ -428,6 +428,7 @@ export default function NavigationSubmenuEdit( { } } label={ __( 'Link' ) } autoComplete="off" + type="url" /> diff --git a/packages/components/src/text-control/style.scss b/packages/components/src/text-control/style.scss index 5ae2a90b827736..3e59c47532a617 100644 --- a/packages/components/src/text-control/style.scss +++ b/packages/components/src/text-control/style.scss @@ -28,3 +28,9 @@ padding-right: $grid-unit-15; } } + +.components-text-control__input[type="email"], +.components-text-control__input[type="url"] { + /* rtl:ignore */ + direction: ltr; +}