Skip to content

Commit

Permalink
fix: Add ltr for email and url
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Dec 20, 2024
1 parent 910c38f commit 80e66a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const InsertFromURLPopover = ( {
<InputControl
__next40pxDefaultSize
label={ __( 'URL' ) }
type="url"
hideLabelFromVision
placeholder={ __( 'Paste or type URL' ) }
onChange={ onChange }
Expand Down
6 changes: 6 additions & 0 deletions packages/block-library/src/form-input/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@
textarea.wp-block-form-input__input {
min-height: 10em;
}

input[type="email"],
input[type="url"] {
/*rtl:ignore*/
direction: ltr;
}
1 change: 1 addition & 0 deletions packages/block-library/src/rss/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default function RSSEdit( { attributes, setAttributes } ) {
<InputControl
__next40pxDefaultSize
label={ label }
type="url"
hideLabelFromVision
placeholder={ __( 'Enter URL here…' ) }
value={ feedURL }
Expand Down

0 comments on commit 80e66a8

Please sign in to comment.