Skip to content

Commit

Permalink
fix: add ltr for email and url in the textcontrol component
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Dec 26, 2024
1 parent 48b8624 commit 7d04ada
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
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 @@ -202,6 +202,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 @@ -428,6 +428,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;
}

0 comments on commit 7d04ada

Please sign in to comment.