Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: add ltr for email and url in the textcontrol component
  • Loading branch information
im3dabasia committed Feb 24, 2025
commit 7cad02102cddcbd5bfbf1bd09fa38643bf889111
2 changes: 2 additions & 0 deletions packages/block-library/src/form/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
) }
</PanelBody>
Expand Down Expand Up @@ -159,6 +160,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
help={ __(
'The URL where the form should be submitted.'
) }
type="url"
/>
</InspectorControls>
) }
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ function Controls( { attributes, setAttributes, setIsLabelFieldFocused } ) {
);
} }
autoComplete="off"
type="url"
/>
</ToolsPanelItem>

Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/navigation-submenu/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ export default function NavigationSubmenuEdit( {
} }
label={ __( 'Link' ) }
autoComplete="off"
type="url"
/>
</ToolsPanelItem>

Expand Down
6 changes: 6 additions & 0 deletions packages/components/src/text-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}